From dcbf1a11783d47e7e4fa30d488ac93a8bc547e71 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 23 Nov 2008 12:28:10 +0000 Subject: Opening a tab with the middle mouse button should always be done with one click, even if double click has been activated. BUG: 162986 svn path=/trunk/KDE/kdebase/apps/; revision=888007 --- src/dolphincolumnwidget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/dolphincolumnwidget.cpp') diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index ab0c3783c..31f5c6193 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -464,9 +464,8 @@ void DolphinColumnWidget::activate() { setFocus(Qt::OtherFocusReason); - // TODO: Connecting to the signal 'activated()' is not possible, as kstyle - // does not forward the single vs. doubleclick to it yet (KDE 4.1?). Hence it is - // necessary connecting the signal 'singleClick()' or 'doubleClick'. + connect(this, SIGNAL(clicked(const QModelIndex&)), + m_view->m_controller, SLOT(requestTab(const QModelIndex&))); if (KGlobalSettings::singleClick()) { connect(this, SIGNAL(clicked(const QModelIndex&)), m_view->m_controller, SLOT(triggerItem(const QModelIndex&))); -- cgit v1.3