summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sessionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index d5bc1ff8..b825ac28 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -208,7 +208,7 @@ void SessionManager::restoreCrashedSession()
MainView *mv = (winNo == 0) ? rApp->mainWindow()->mainView() : rApp->newMainWindow()->mainView();
- bool useCurrentTab = (mv->currentWebTab()->url().protocol() == QL1S("about"));
+ bool useCurrentTab = (!mv->currentWebTab()->url().isValid() || (mv->currentWebTab()->url().protocol() == QL1S("about")));
int currentTab = loadViewTabs(mv, window, useCurrentTab);
mv->setCurrentIndex(currentTab);