summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid E. Narváez <david.narvaez@computer.org>2012-09-26 06:32:50 -0500
committerDavid E. Narváez <david.narvaez@computer.org>2012-09-26 06:32:50 -0500
commita22c9cbaf7fb0a995c1d89371d2d679e3fd1b3c7 (patch)
tree798b85f0b91b8367f8b26edd209279e8c9f41389 /src
parentDon't overwrite downloads by default (diff)
downloadrekonq-a22c9cbaf7fb0a995c1d89371d2d679e3fd1b3c7.tar.xz
Check if URL is Valid Before Checking if it's about: Protocol
Check if the URL of the current tab is even valid before checking its protocol. REVIEW: 106561
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);