From 7a344930ec7d23d8fa5328fabda6a03b83f35c39 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Tue, 14 Feb 2017 15:55:33 +0100 Subject: [PATCH] Don't try to show window when 'Minimize at startup' is enabled, prevents rendering glitches in Unity, resolves #304 --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) {