diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-09-19 17:58:29 +0200 |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-09-19 20:45:30 +0200 |
commit | 142e0d44a8b8ef1f639aaf772aa9631d220d0275 (patch) | |
tree | 0758d1a9b45a3f62aedf718241ec6244ee9df60d /src/mainwindow.cpp | |
parent | some minor changes to the INSTALL file (diff) | |
download | rekonq-142e0d44a8b8ef1f639aaf772aa9631d220d0275.tar.xz |
Change the behavior of Ctrl+Maj+T to open only the last closed tab
Previously, the action of Ctrl+Maj+T was opening all the closed tabs.
This was differing from Firefox and Chrome, which can be confusing
for users.
This patch change the behavior to open only the last closed tab,
making the behavior more like the other browsers.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4c766ba0..4d3dfc91 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -449,10 +449,10 @@ void MainWindow::setupActions() actionCollection()->addAction(QL1S("show_prev_tab"), a); connect(a, SIGNAL(triggered(bool)), m_view, SLOT(previousTab())); - a = new KAction(KIcon("tab-new"), i18n("Open Closed Tabs"), this); + a = new KAction(KIcon("tab-new"), i18n("Open Last Closed Tab"), this); a->setShortcut(KShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_T)); - actionCollection()->addAction(QL1S("open_closed_tabs"), a); - connect(a, SIGNAL(triggered(bool)), m_view, SLOT(openClosedTabs())); + actionCollection()->addAction(QL1S("open_last_closed_tab"), a); + connect(a, SIGNAL(triggered(bool)), m_view, SLOT(openLastClosedTab())); // Closed Tabs Menu KActionMenu *closedTabsMenu = new KActionMenu(KIcon("tab-new"), i18n("Closed Tabs"), this); |