summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:22:02 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-24 16:22:02 +0200
commitddd86a17a26b88fe39df17459bef587aa22a16d3 (patch)
treef2327733717a5a149f68e17daee540f529f32d64 /src/application.cpp
parentNew dns prefetch webkit property and updated local storage one (diff)
parentDetach tab. last fixes. (diff)
downloadrekonq-ddd86a17a26b88fe39df17459bef587aa22a16d3.tar.xz
Merge branch 'DETACH_TAB'
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp
index db6d3c32..45d115ae 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -329,10 +329,12 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
}
-MainWindow *Application::newMainWindow()
+MainWindow *Application::newMainWindow(bool withTab)
{
MainWindow *w = new MainWindow();
- w->mainView()->newWebTab(); // remember using newWebTab and NOT newTab here!!
+
+ if(withTab)
+ w->mainView()->newWebTab(); // remember using newWebTab and NOT newTab here!!
m_mainWindows.prepend(w);
w->show();