summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <peter.penz19@gmail.com>2011-02-12 17:22:05 (GMT)
committerPeter Penz <peter.penz19@gmail.com>2011-02-12 17:23:59 (GMT)
commit5791fc023f702c145696deb9ecc76a78104e7389 (patch)
tree93a43023eee3a58aeeb0f1b321d0b0aa2f2faa3f
parentd5504ca8891fb01ed2f5665f33d8e928a06ebaa1 (diff)
Open folder in a new tab when a middle-click is done in the column-view
BUG: 265859 FIXED-IN: 4.6.1
-rw-r--r--dolphin/src/views/dolphincolumnview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dolphin/src/views/dolphincolumnview.cpp b/dolphin/src/views/dolphincolumnview.cpp
index 41d281b..840ecf7 100644
--- a/dolphin/src/views/dolphincolumnview.cpp
+++ b/dolphin/src/views/dolphincolumnview.cpp
@@ -552,6 +552,8 @@ void DolphinColumnView::activate()
{
setFocus(Qt::OtherFocusReason);
+ connect(this, SIGNAL(clicked(const QModelIndex&)),
+ m_container->m_dolphinViewController, SLOT(requestTab(const QModelIndex&)));
if (KGlobalSettings::singleClick()) {
connect(this, SIGNAL(clicked(const QModelIndex&)),
m_container->m_dolphinViewController, SLOT(triggerItem(const QModelIndex&)));
@@ -570,6 +572,9 @@ void DolphinColumnView::activate()
void DolphinColumnView::deactivate()
{
clearFocus();
+
+ disconnect(this, SIGNAL(clicked(const QModelIndex&)),
+ m_container->m_dolphinViewController, SLOT(requestTab(const QModelIndex&)));
if (KGlobalSettings::singleClick()) {
disconnect(this, SIGNAL(clicked(const QModelIndex&)),
m_container->m_dolphinViewController, SLOT(triggerItem(const QModelIndex&)));