diff options
author | David E. Narváez <david.narvaez@computer.org> | 2012-09-26 06:32:50 -0500 |
---|---|---|
committer | David E. Narváez <david.narvaez@computer.org> | 2012-09-26 06:32:50 -0500 |
commit | a22c9cbaf7fb0a995c1d89371d2d679e3fd1b3c7 (patch) | |
tree | 798b85f0b91b8367f8b26edd209279e8c9f41389 | |
parent | Don't overwrite downloads by default (diff) | |
download | rekonq-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
-rw-r--r-- | src/sessionmanager.cpp | 2 |
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); |