summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-28 03:15:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-28 03:15:17 +0200
commit1758686ac4b3c1a2ebf9bc88158f7cf1ccb1e8e9 (patch)
tree392cb389ceafdf97d5b0bf475cf3ff0ec4f867c0 /src/application.cpp
parentkdialog fixes (diff)
parentTabBar context menu fix ported (diff)
downloadrekonq-1758686ac4b3c1a2ebf9bc88158f7cf1ccb1e8e9.tar.xz
Merge commit 'avaddon/master' into MERGING
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp20
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();
}