summaryrefslogtreecommitdiff
path: root/src/sessionmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-22 23:43:46 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-22 23:43:46 +0200
commit370d5677ba15c4e41ba2513bbeed266fe69cbe41 (patch)
treed45d54f9644709f0f4324280c47999c7d5e7601e /src/sessionmanager.cpp
parentshow url on file:// && ftp:// schemes (diff)
downloadrekonq-370d5677ba15c4e41ba2513bbeed266fe69cbe41.tar.xz
Cleaning some kDebug calls
Diffstat (limited to 'src/sessionmanager.cpp')
-rw-r--r--src/sessionmanager.cpp47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/sessionmanager.cpp b/src/sessionmanager.cpp
index 97d9bc36..6eb0cb6c 100644
--- a/src/sessionmanager.cpp
+++ b/src/sessionmanager.cpp
@@ -110,33 +110,34 @@ bool SessionManager::restoreSession()
if (line == QString("window"))
{
line = in.readLine();
- kDebug() << "New Window line: " << line;
Application::instance()->loadUrl( KUrl(line), Rekonq::NewWindow);
}
- else if (line == QString("currenttab"))
- {
- kDebug() << "Set Current Tab Line" << endl;
- line = in.readLine();
- bool ok;
- int idx = line.toInt(&ok);
- if (ok)
- {
- kDebug() << "Setting current tab to " << idx << endl;
- // Get last mainwindow created which will be first one in mainwindow list
- MainWindowList wl = Application::instance()->mainWindowList();
- if (wl.count() > 0)
- {
- MainView *mv = wl[0].data()->mainView();
- emit mv->tabBar()->setCurrentIndex(idx);
- }
- }
- else
- kDebug() << "Failed to convert currenttab index line <" << line << "> to in value" << endl;
- }
else
{
- kDebug() << "New Current Tab line: " << line;
- Application::instance()->loadUrl( KUrl(line), Rekonq::NewCurrentTab);
+ if (line == QString("currenttab"))
+ {
+ line = in.readLine();
+ bool ok;
+ int idx = line.toInt(&ok);
+ if (ok)
+ {
+ // Get last mainwindow created which will be first one in mainwindow list
+ MainWindowList wl = Application::instance()->mainWindowList();
+ if (wl.count() > 0)
+ {
+ MainView *mv = wl[0].data()->mainView();
+ emit mv->tabBar()->setCurrentIndex(idx);
+ }
+ }
+ else
+ {
+ kDebug() << "Failed to convert currenttab index line <" << line << "> to in value" << endl;
+ }
+ }
+ else
+ {
+ Application::instance()->loadUrl( KUrl(line), Rekonq::NewCurrentTab);
+ }
}
}
while (!line.isEmpty());