summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
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);
}