From 8a51f70377a5133984426b3fa999aee3859cfa5e Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 24 Jul 2008 19:50:40 +0000 Subject: fix crash when opening a lot of columns and going back very fast by clicking on each breadcrumb of the URL navigator BUG: 164304 svn path=/trunk/KDE/kdebase/apps/; revision=837486 --- src/dolphincontroller.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/dolphincontroller.cpp') diff --git a/src/dolphincontroller.cpp b/src/dolphincontroller.cpp index b00ca7160..375eb4403 100644 --- a/src/dolphincontroller.cpp +++ b/src/dolphincontroller.cpp @@ -57,9 +57,11 @@ void DolphinController::setItemView(QAbstractItemView* view) m_itemView = view; - // TODO: this is a workaround until Qt-issue 176832 has been fixed - connect(m_itemView, SIGNAL(pressed(const QModelIndex&)), - this, SLOT(updateOpenTabState())); + if (m_itemView != 0) { + // TODO: this is a workaround until Qt-issue 176832 has been fixed + connect(m_itemView, SIGNAL(pressed(const QModelIndex&)), + this, SLOT(updateOpenTabState())); + } } void DolphinController::triggerUrlChangeRequest(const KUrl& url) -- cgit v1.3