diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-01-09 02:44:50 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-01-09 02:44:50 +0100 |
commit | a14af0874d4ceac743727af1665ea1d5f15839d9 (patch) | |
tree | 1bcfa9d51e54e76440be62916e54821d9b997643 /src/browserapplication.cpp | |
parent | Last commit before loadPage REMOVAL.. (diff) | |
download | rekonq-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.cpp | 9 |
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 ); } |