summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-20 11:23:51 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-20 11:23:51 +0200
commit5bacded29a5e33c027a39a537bf2b0f3e9c6243d (patch)
tree5d754f4cf2555c9e1ce0ab6864c3588a1843e4d6 /src/mainview.cpp
parentSVN_SILENT made messages (.desktop file) (diff)
parentChange the behavior of Ctrl+Maj+T to open only the last closed tab (diff)
downloadrekonq-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.cpp12
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);
}