From: Flavio Tordini Date: Mon, 14 Sep 2015 14:24:12 +0000 (+0200) Subject: Show window later X-Git-Tag: 2.5~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c6c209182a2be8547a0709e13ccfcc91d4d2d21;p=minitube Show window later --- diff --git a/src/main.cpp b/src/main.cpp index ea695ec..b462138 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,7 +36,6 @@ $END_LICENSE */ void showWindow(QtSingleApplication &app, const QString &dataDir) { MainWindow *mainWin = new MainWindow(); - mainWin->show(); #ifndef APP_MAC QIcon appIcon; @@ -58,6 +57,8 @@ void showWindow(QtSingleApplication &app, const QString &dataDir) { mainWin->connect(&app, SIGNAL(messageReceived(const QString &)), mainWin, SLOT(messageReceived(const QString &))); app.setActivationWindow(mainWin, true); + + mainWin->show(); } int main(int argc, char **argv) {