mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
cd13cc342b
commit
1b160aee92
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue