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
This commit is contained in:
David Faure 2009-09-18 17:00:30 +00:00
parent cd13cc342b
commit 1b160aee92

View file

@ -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()