summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-11-25 15:24:09 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:06 +0100
commit8e58c619333a663eaa521efc87f617ca37742cde (patch)
treecda2832ed7563215f93049c77ada2d346d517065 /src
parentre-enable the (useful) "open link in new tab" action in web app mode (diff)
downloadrekonq-8e58c619333a663eaa521efc87f617ca37742cde.tar.xz
Add an home page tab when rekonq is started with some pinned tabs
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 92444625..06f9fd82 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -251,7 +251,9 @@ int Application::newInstance()
loadUrl(KUrl(ReKonfig::homePage()), Rekonq::NewPrivateWindow);
break;
}
- if (!SessionManager::self()->restoreJustThePinnedTabs())
+ if (SessionManager::self()->restoreJustThePinnedTabs())
+ loadUrl(KUrl(ReKonfig::homePage()) , Rekonq::NewTab);
+ else
loadUrl(KUrl(ReKonfig::homePage()) , Rekonq::NewWindow);
break;
case 1: // open new tab page
@@ -260,7 +262,9 @@ int Application::newInstance()
loadUrl(KUrl("about:home"), Rekonq::NewPrivateWindow);
break;
}
- if (!SessionManager::self()->restoreJustThePinnedTabs())
+ if (SessionManager::self()->restoreJustThePinnedTabs())
+ loadUrl(KUrl("about:home") , Rekonq::NewTab);
+ else
loadUrl(KUrl("about:home"), Rekonq::NewWindow);
break;
case 2: // restore session