diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-23 01:34:47 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-23 01:34:47 +0200 |
commit | e435ee3eae6285fb9d48cc011a1cefc08429b873 (patch) | |
tree | 7b50558119a413e4939a53e7ddf053eb0f90cd43 /src/application.cpp | |
parent | Merge branch 'master' of gitorious.org:rekonq/mainline (diff) | |
download | rekonq-e435ee3eae6285fb9d48cc011a1cefc08429b873.tar.xz |
Dramatically improved "detach tab" performances..
Need to round some corners, yet.
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(); |