summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-29 00:56:37 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-29 00:56:37 +0100
commit5ee1c2f7d46f7a7cd2ab34c16f4ff185b94cc1a2 (patch)
tree2ce86280e377c508db597f9bc9cbcf52e4fad8f1 /src
parentupdated TODO (diff)
downloadrekonq-5ee1c2f7d46f7a7cd2ab34c16f4ff185b94cc1a2.tar.xz
Load just 1 site at start..
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp10
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)