summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-10-25 19:39:10 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit847153eead1f136dda86629994b1f32eeebb459c (patch)
treed30cba1d2a902bd65eb8878f160511999ed9e2ee /src/tabwindow/tabbar.cpp
parentFix focus handling on views (diff)
downloadrekonq-847153eead1f136dda86629994b1f32eeebb459c.tar.xz
Fix/add missing rekonq actions & shortcuts
Diffstat (limited to 'src/tabwindow/tabbar.cpp')
-rw-r--r--src/tabwindow/tabbar.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp
index feb3fd8d..725d1372 100644
--- a/src/tabwindow/tabbar.cpp
+++ b/src/tabwindow/tabbar.cpp
@@ -177,17 +177,6 @@ void TabBar::detachTab()
}
-void TabBar::reopenLastClosedTab()
-{
- KAction *a = qobject_cast<KAction *>(sender());
- if (a)
- {
- int index = a->data().toInt();
- emit restoreClosedTab(index);
- }
-}
-
-
void TabBar::contextMenu(int tab, const QPoint &pos)
{
TabWindow *w = qobject_cast<TabWindow *>(parent());
@@ -254,7 +243,7 @@ void TabBar::contextMenu(int tab, const QPoint &pos)
a = new KAction(KIcon("tab-new"), i18n("Open Last Closed Tab"), this);
a->setData(0); // last closed tab has index 0!
- connect(a, SIGNAL(triggered(bool)), this, SLOT(reopenLastClosedTab()));
+ connect(a, SIGNAL(triggered(bool)), this, SIGNAL(restoreLastClosedTab()));
menu.addAction(a);
if (count() > 1)