┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2009-09-18 17:00:30 +0000
committerDavid Faure <[email protected]>2009-09-18 17:00:30 +0000
commit1b160aee92af8bd215f88f524683c7214f497f90 (patch)
tree7cb1eb6a76acf33254de01d7208819568170aa78
parentcd13cc342b5d034fbba2c56c5d361ee804de1b21 (diff)
Fix crash when changing view modes (view creation -> openurl -> clear -> update statusbar text -> accessing view, which is NULL)
svn path=/trunk/KDE/kdebase/apps/; revision=1025401
-rw-r--r--src/dolphinview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 85bc21c77..568258168 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -309,7 +309,8 @@ void DolphinView::invertSelection()
bool DolphinView::hasSelection() const
{
- return m_viewAccessor.itemView()->selectionModel()->hasSelection();
+ const QAbstractItemView* view = m_viewAccessor.itemView();
+ return view && view->selectionModel()->hasSelection();
}
void DolphinView::clearSelection()