summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-01 01:00:07 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-01 01:00:07 +0200
commit785e6bbba70bae11751ae232ee99b23dabb69819 (patch)
tree3ea295d06e7b94a4d26be977bc6d714e68dc65f6 /src
parentMerge commit 'refs/merge-requests/109' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-785e6bbba70bae11751ae232ee99b23dabb69819.tar.xz
Fix loading url path on startup arguments
Diffstat (limited to 'src')
-rw-r--r--src/application.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 9620feb8..7cceac49 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -164,9 +164,9 @@ int Application::newInstance()
{
// No windows in the current desktop? No windows at all?
// Create a new one and load there sites...
- loadUrl(args->arg(0), Rekonq::CurrentTab);
+ loadUrl(args->url(0), Rekonq::CurrentTab);
for (int i = 1; i < args->count(); ++i)
- loadUrl(KUrl(args->arg(i)), Rekonq::SettingOpenTab);
+ loadUrl( args->url(i), Rekonq::SettingOpenTab);
}
else
{
@@ -177,7 +177,7 @@ int Application::newInstance()
MainWindow *m = m_mainWindows.at(index - 1).data();
m->activateWindow();
for (int i = 0; i < args->count(); ++i)
- loadUrl(KUrl(args->arg(i)), Rekonq::NewCurrentTab);
+ loadUrl( args->url(i), Rekonq::NewCurrentTab);
}
}
}