summaryrefslogtreecommitdiff
path: root/src/sessionmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:19:27 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:19:27 +0100
commit9d20e99fffeebe67fd8ff27cb4f9e353892f5190 (patch)
tree23462fac2e862a2f408a26f94ab024c4174c3458 /src/sessionmanager.cpp
parentrekonq 0.6.82 (diff)
downloadrekonq-9d20e99fffeebe67fd8ff27cb4f9e353892f5190.tar.xz
Coding style
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r--src/sessionmanager.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index 30ab4b25..65acff77 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -111,11 +111,14 @@ bool SessionManager::restoreSession()
if (line == QL1S("window"))
{
line = in.readLine();
- if (windowAlreadyOpen) {
- rApp->loadUrl( KUrl(line), Rekonq::CurrentTab);
+ if (windowAlreadyOpen)
+ {
+ rApp->loadUrl(KUrl(line), Rekonq::CurrentTab);
windowAlreadyOpen = false;
- } else {
- rApp->loadUrl( KUrl(line), Rekonq::NewWindow);
+ }
+ else
+ {
+ rApp->loadUrl(KUrl(line), Rekonq::NewWindow);
}
}
else
@@ -138,7 +141,7 @@ bool SessionManager::restoreSession()
}
else
{
- rApp->loadUrl( KUrl(line), Rekonq::NewFocusedTab);
+ rApp->loadUrl(KUrl(line), Rekonq::NewFocusedTab);
}
}
}
@@ -168,7 +171,7 @@ QStringList SessionManager::closedSites()
line = in.readLine();
if (line != QL1S("window"))
{
- if(line == QL1S("currenttab"))
+ if (line == QL1S("currenttab"))
{
in.readLine(); // drop out the next field, containing the index of the current tab..
}