summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-09-13 15:50:25 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-09-13 15:50:25 +0200
commitb3cac2409dc0119c8cc4df2fbb605c3559c85365 (patch)
tree1f90733a619d57ac9066eb7b7f9f59b461557f4c
parentfix layout of rssWidget (diff)
downloadrekonq-b3cac2409dc0119c8cc4df2fbb605c3559c85365.tar.xz
Get sure about urls are restored
-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);