summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sessionmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index 1377132c..00585318 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -79,7 +79,7 @@ void SessionManager::saveSession()
QDomElement tab = document.createElement("tab");
tab.setAttribute("title", mv->webTab(tabNo)->view()->title()); // redundant, but needed for closedSites()
// as there's not way to read out the historyData
- tab.setAttribute("url", mv->webTab(tabNo)->view()->url().toString());
+ tab.setAttribute("url", mv->webTab(tabNo)->url().url()); // Use WebTab's instead of WebView's url() to fix about links
if (mv->tabBar()->currentIndex() == tabNo)
{
tab.setAttribute("currentTab", 1);
@@ -151,6 +151,11 @@ bool SessionManager::restoreSession()
QDataStream readingStream(&history, QIODevice::ReadOnly);
readingStream >> *(view->history());
+
+ // Get sure about urls are loaded
+ KUrl u = KUrl(tab.attribute("url"));
+ if (u.protocol() == QL1S("about"))
+ view->load(u);
}
mv->tabBar()->setCurrentIndex(currentTab);