summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sessionmanager.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index 6eb0cb6c..56e24f16 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -107,14 +107,14 @@ bool SessionManager::restoreSession()
do
{
line = in.readLine();
- if (line == QString("window"))
+ if (line == QL1S("window"))
{
line = in.readLine();
Application::instance()->loadUrl( KUrl(line), Rekonq::NewWindow);
}
else
{
- if (line == QString("currenttab"))
+ if (line == QL1S("currenttab"))
{
line = in.readLine();
bool ok;
@@ -129,10 +129,6 @@ bool SessionManager::restoreSession()
emit mv->tabBar()->setCurrentIndex(idx);
}
}
- else
- {
- kDebug() << "Failed to convert currenttab index line <" << line << "> to in value" << endl;
- }
}
else
{
@@ -164,9 +160,16 @@ QStringList SessionManager::closedSites()
do
{
line = in.readLine();
- if (line != QString("window"))
+ if (line != QL1S("window"))
{
- list << QString(line);
+ if(line == QL1S("currenttab"))
+ {
+ in.readLine(); // drop out the next field, containing the index of the current tab..
+ }
+ else
+ {
+ list << QString(line);
+ }
}
}
while (!line.isEmpty());