Don't try to show window when 'Minimize at startup' is enabled, prevents rendering glitches in Unity, resolves #304

This commit is contained in:
Janek Bevendorff 2017-02-14 15:55:33 +01:00
parent ef53600d74
commit 7a344930ec

View File

@ -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++) {