diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:22:02 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-24 16:22:02 +0200 |
commit | ddd86a17a26b88fe39df17459bef587aa22a16d3 (patch) | |
tree | f2327733717a5a149f68e17daee540f529f32d64 /src/application.cpp | |
parent | New dns prefetch webkit property and updated local storage one (diff) | |
parent | Detach tab. last fixes. (diff) | |
download | rekonq-ddd86a17a26b88fe39df17459bef587aa22a16d3.tar.xz |
Merge branch 'DETACH_TAB'
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 6 |
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(); |