[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kraft/mark_sent] src: Do not crash if there is no selection model.
From:       Klaas Freitag <freitag () kde ! org>
Date:       2015-10-30 9:14:27
Message-ID: E1Zs5lT-0000eW-NE () scm ! kde ! org
[Download RAW message or body]

Git commit e82ffe78b03bd4adf8f1b612ab8f9e15b8c6a3bd by Klaas Freitag.
Committed on 29/10/2015 at 08:04.
Pushed by freitag into branch 'mark_sent'.

Do not crash if there is no selection model.

M  +1    -1    src/docdigestview.cpp

http://commits.kde.org/kraft/e82ffe78b03bd4adf8f1b612ab8f9e15b8c6a3bd

diff --git a/src/docdigestview.cpp b/src/docdigestview.cpp
index b43a388..6742092 100644
--- a/src/docdigestview.cpp
+++ b/src/docdigestview.cpp
@@ -300,7 +300,7 @@ void DocDigestView::slotUpdateView()
     int indx = mToolBox->currentIndex();
     QAbstractItemView *view = mTreeViewIndex[indx];
     QModelIndex row;
-    if( view ) {
+    if( view && view->selectionModel() ) {
         row = view->selectionModel()->selectedRows().at(0);
     }
     QApplication::setOverrideCursor( QCursor( Qt::WaitCursor ) );

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic