]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Middle-clicking on tabs will now close them.
authorShaun Reich <shaun.reich@kdemail.net>
Tue, 10 Feb 2009 20:48:16 +0000 (20:48 +0000)
committerShaun Reich <shaun.reich@kdemail.net>
Tue, 10 Feb 2009 20:48:16 +0000 (20:48 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=924467

src/dolphinmainwindow.cpp

index b41561b28f5030c226a8f56940d2741184acff18..697fba85fcb8a2ac823a74ee506e7935dfce8c6a 100644 (file)
@@ -907,6 +907,8 @@ void DolphinMainWindow::init()
             this, SLOT(slotTestCanDecode(const QDragMoveEvent*, bool&)));
     connect(m_tabBar, SIGNAL(wheelDelta(int)),
            this, SLOT(slotWheelMoved(int)));
+    connect(m_tabBar, SIGNAL(mouseMiddleClick(int)),
+            this, SLOT(closeTab(int)));
 
     m_tabBar->blockSignals(true);  // signals get unblocked after at least 2 tabs are open