From e3d3973995e3d4afeb5fe4e70dacfa632ce48fc5 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 29 Apr 2009 11:16:39 +0200 Subject: Other optimizations on MainWindow loading --- src/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b45a63b6..59196975 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -116,9 +116,6 @@ MainWindow::MainWindow() // toolbar position, icon size, etc. setupGUI(); - // setup history menu: this has to be done AFTER setupGUI!! - setupHistoryMenu(); - QTimer::singleShot(0, this, SLOT(postLaunch())); } @@ -131,6 +128,9 @@ MainWindow::~MainWindow() void MainWindow::postLaunch() { + // setup history menu: this has to be done AFTER setupGUI!! + setupHistoryMenu(); + // --------- connect signals and slots connect(m_view, SIGNAL(setCurrentTitle(const QString &)), this, SLOT(slotUpdateWindowTitle(const QString &))); connect(m_view, SIGNAL(loadProgress(int)), this, SLOT(slotLoadProgress(int))); -- cgit v1.2.1