From 3fc0161e6c0aee388be48e00b1dc1e27639230f3 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Thu, 16 Aug 2012 14:31:26 +0200 Subject: 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) --- src/application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1