diff options
Diffstat (limited to 'src/application.cpp')
-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) |