summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-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;