diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2012-08-16 14:31:26 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2012-08-16 14:31:26 +0200 |
commit | 3fc0161e6c0aee388be48e00b1dc1e27639230f3 (patch) | |
tree | 228a7d73ac0e2f31866325d4200a81384ee9d1c5 /src/application.cpp | |
parent | Choose a better name for the tabWidth in TabBar::showTabPreview() (diff) | |
download | rekonq-3fc0161e6c0aee388be48e00b1dc1e27639230f3.tar.xz |
Make sure to add all MainWindow before a new tab.
It fixes some issue for slot which use this list before/during the call of newWebTab (eg: zoomBar)
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp index de306170..18e3cad7 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -498,10 +498,11 @@ MainWindow *Application::newMainWindow(bool withTab) // This is used to track which window was activated most recently w->installEventFilter(this); + m_mainWindows.prepend(w); + if (withTab) w->mainView()->newWebTab(); // remember using newWebTab and NOT newTab here!! - m_mainWindows.prepend(w); w->show(); return w; |