summaryrefslogtreecommitdiff
path: root/src/browserapplication.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-01-09 02:44:50 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-01-09 02:44:50 +0100
commita14af0874d4ceac743727af1665ea1d5f15839d9 (patch)
tree1bcfa9d51e54e76440be62916e54821d9b997643 /src/browserapplication.cpp
parentLast commit before loadPage REMOVAL.. (diff)
downloadrekonq-a14af0874d4ceac743727af1665ea1d5f15839d9.tar.xz
removed LoadPage method to semplify API
Now we have just loadUrl slot to run pages..
Diffstat (limited to 'src/browserapplication.cpp')
-rw-r--r--src/browserapplication.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/browserapplication.cpp b/src/browserapplication.cpp
index bc29d64e..bb8c76b1 100644
--- a/src/browserapplication.cpp
+++ b/src/browserapplication.cpp
@@ -135,9 +135,14 @@ void BrowserApplication::postLaunch()
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
int n = args->count();
if (n > 1)
- mainWindow()->loadPage(args->arg(n-1));
+ {
+ KUrl url = MainWindow::guessUrlFromString( args->arg(n-1) );
+ mainWindow()->loadUrl( url );
+ }
else
+ {
mainWindow()->slotHome();
+ }
}
BrowserApplication::historyManager();
}
@@ -272,7 +277,7 @@ bool BrowserApplication::isTheOnlyBrowser() const
void BrowserApplication::openUrl(const KUrl &url)
{
- mainWindow()->loadPage( url.url() );
+ mainWindow()->loadUrl( url );
}