diff options
author | Alexandr Domrachev <alexandr.domrachev@gmail.com> | 2009-04-27 17:05:43 +0000 |
---|---|---|
committer | Alexandr Domrachev <alexandr.domrachev@gmail.com> | 2009-04-27 17:05:43 +0000 |
commit | fdbd70a77a8c294e0a578073c738f3bc4dfa6ab5 (patch) | |
tree | 4f3a93b0b7b3fe85065e4456865382fec244928f /src/application.cpp | |
parent | .gitignore update (diff) | |
download | rekonq-fdbd70a77a8c294e0a578073c738f3bc4dfa6ab5.tar.xz |
Some changes ported for merge to mainline (bookmarks & links handling related)
Added author: me :)
Bookmark owner: openFolderinTabs implemented
Links handling ported from Pawel branch
Issue #1 fixed
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/application.cpp b/src/application.cpp index eee803bc..25b328e6 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -79,12 +79,12 @@ int Application::newInstance() if (!m_mainWindow) { m_mainWindow = new MainWindow(); - + m_mainWindow->setObjectName("MainWindow"); setWindowIcon(KIcon("rekonq")); - + m_mainWindow->show(); - + QTimer::singleShot(0, this, SLOT(postLaunch())); } @@ -94,7 +94,7 @@ int Application::newInstance() { KUrl url = MainWindow::guessUrlFromString(args->arg(i)); newWebView(); - mainWindow()->loadUrl(url); + emit openUrl(url); } args->clear(); } @@ -135,21 +135,15 @@ void Application::slotSaveConfiguration() const } -void Application::openUrl(const KUrl &url) -{ - mainWindow()->loadUrl(url); -} - - MainWindow *Application::mainWindow() { return m_mainWindow; } -WebView *Application::newWebView() +WebView *Application::newWebView(bool makeCurrent) { - return m_mainWindow->mainView()->newWebView(); + return m_mainWindow->mainView()->newWebView(makeCurrent); } @@ -183,7 +177,7 @@ HistoryManager *Application::historyManager() DownloadManager *Application::downloadManager() { - if (!s_downloadManager) + if (!s_downloadManager) { s_downloadManager = new DownloadManager(); } |