┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontroller.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-07-24 19:50:40 +0000
committerPeter Penz <[email protected]>2008-07-24 19:50:40 +0000
commit8a51f70377a5133984426b3fa999aee3859cfa5e (patch)
tree3db367b98f0714241642d184eb1b07d1b6146304 /src/dolphincontroller.cpp
parent5d7de69ae6cc55dc5d6fb020e7809a74e9eeebd8 (diff)
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
Diffstat (limited to 'src/dolphincontroller.cpp')
-rw-r--r--src/dolphincontroller.cpp8
1 files changed, 5 insertions, 3 deletions
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)