From 9d20e99fffeebe67fd8ff27cb4f9e353892f5190 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 25 Feb 2011 00:19:27 +0100 Subject: Coding style --- src/sessionmanager.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/sessionmanager.cpp') 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.. } -- cgit v1.2.1