diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-09-20 11:23:51 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-09-20 11:23:51 +0200 |
commit | 5bacded29a5e33c027a39a537bf2b0f3e9c6243d (patch) | |
tree | 5d754f4cf2555c9e1ce0ab6864c3588a1843e4d6 /src/mainview.cpp | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
parent | Change the behavior of Ctrl+Maj+T to open only the last closed tab (diff) | |
download | rekonq-5bacded29a5e33c027a39a537bf2b0f3e9c6243d.tar.xz |
Merge commit 'refs/merge-requests/216' of git://gitorious.org/rekonq/mainline into m216
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index f020fb53..3daee339 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -633,13 +633,13 @@ void MainView::previousTab() } -void MainView::openClosedTabs() +void MainView::openLastClosedTab() { - foreach (const HistoryItem &item, recentlyClosedTabs()) - { - Application::instance()->loadUrl( KUrl(item.url), Rekonq::NewTab); - } - m_recentlyClosedTabs.clear(); + if (m_recentlyClosedTabs.isEmpty()) + return; + + const HistoryItem item = m_recentlyClosedTabs.takeFirst(); + Application::instance()->loadUrl(KUrl(item.url), Rekonq::NewTab); } |