diff --git a/src/main.cpp b/src/main.cpp index 224e54d1e..c3316ee5a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -97,13 +97,14 @@ int main(int argc, char** argv) MainWindow mainWindow; app.setMainWindow(&mainWindow); - mainWindow.show(); QObject::connect(&app, SIGNAL(openFile(QString)), &mainWindow, SLOT(openDatabase(QString))); // start minimized if configured if (config()->get("GUI/MinimizeOnStartup").toBool()) { mainWindow.setWindowState(Qt::WindowMinimized); + } else { + mainWindow.show(); } for (int ii=0; ii < args.length(); ii++) {