diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-29 00:56:37 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-29 00:56:37 +0100 |
commit | 5ee1c2f7d46f7a7cd2ab34c16f4ff185b94cc1a2 (patch) | |
tree | 2ce86280e377c508db597f9bc9cbcf52e4fad8f1 /src | |
parent | updated TODO (diff) | |
download | rekonq-5ee1c2f7d46f7a7cd2ab34c16f4ff185b94cc1a2.tar.xz |
Load just 1 site at start..
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/application.cpp b/src/application.cpp index 53b1cbce..0151d364 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -65,7 +65,6 @@ Application::Application() m_mainWindow->setObjectName("MainWindow"); setWindowIcon(KIcon("rekonq")); newTab(); - mainWindow()->slotHome(); m_mainWindow->show(); @@ -87,7 +86,9 @@ int Application::newInstance() if (args->count() > 0) { - for (int i = 0; i < args->count(); ++i) + KUrl url = MainWindow::guessUrlFromString(args->arg(0)); + mainWindow()->loadUrl(url); + for (int i = 1; i < args->count(); ++i) { KUrl url = MainWindow::guessUrlFromString(args->arg(i)); newTab(); @@ -95,6 +96,10 @@ int Application::newInstance() } args->clear(); } + else + { + mainWindow()->slotHome(); + } return 0; } @@ -161,7 +166,6 @@ NetworkAccessManager *Application::networkAccessManager() } - HistoryManager *Application::historyManager() { if (!s_historyManager) |