diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-11 11:20:24 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-11 11:20:24 +0200 |
commit | a32b1a830acaaeda5caa070d046e5676fa8e9734 (patch) | |
tree | 417efb2d3e8976a72d52a0a8bd18b87a40318d8d /src/mainview.cpp | |
parent | Add "days" word to better explain the adblock update interval (diff) | |
download | rekonq-a32b1a830acaaeda5caa070d046e5676fa8e9734.tar.xz |
(Re)-open closed tabs
tabbar actions & CTRL + SHIFT + T shortcut for the last
Johannes Zellner's patch. Thanks :)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 6179af80..e703976d 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -637,6 +637,22 @@ void MainView::previousTab() setCurrentIndex(next); } +void MainView::openClosedTabs() +{ + foreach (const HistoryItem &item, recentlyClosedTabs()) + { + Application::instance()->loadUrl( KUrl(item.url), Rekonq::SettingOpenTab); + } +} + +void MainView::openClosedTab() +{ + KAction *action = qobject_cast<KAction *>(sender()); + if (action) + { + Application::instance()->loadUrl(action->data().toUrl(), Rekonq::SettingOpenTab); + } +} QLabel *MainView::animatedLoading(int index, bool addMovie) { |