diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-04-24 10:37:41 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-04-24 10:37:41 +0200 |
commit | 1054e2ea8b5ad17ca719a1fee10832709f1c2418 (patch) | |
tree | 2966f37b5d7182c3fcd3fa81544a82c11bb5c7e3 /src/sessionmanager.cpp | |
parent | rekonq 0.9.57 (diff) | |
download | rekonq-1054e2ea8b5ad17ca719a1fee10832709f1c2418.tar.xz |
Do not show "closed tabs" page after crash when directly opening an URL
BUG: 283178
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r-- | src/sessionmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp index 02488801..d5bc1ff8 100644 --- a/src/sessionmanager.cpp +++ b/src/sessionmanager.cpp @@ -208,7 +208,8 @@ void SessionManager::restoreCrashedSession() MainView *mv = (winNo == 0) ? rApp->mainWindow()->mainView() : rApp->newMainWindow()->mainView(); - int currentTab = loadViewTabs(mv, window, true); + bool useCurrentTab = (mv->currentWebTab()->url().protocol() == QL1S("about")); + int currentTab = loadViewTabs(mv, window, useCurrentTab); mv->setCurrentIndex(currentTab); } |