summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/application.cpp3
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;