summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 231594f..2804196 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -97,5 +97,15 @@ int main(int argc, char *argv[])
MainWindow window(config);
window.show();
+ // After show(), and out here rather than inside the constructor. A modal
+ // raised from the constructor cannot be dismissed under the offscreen
+ // platform, so it hung the test suite with no output (item 84). Showing it
+ // here also gives the dialog a visible parent to sit on.
+ const QStringList problems = window.configProblems();
+ if (!problems.isEmpty()) {
+ QMessageBox::warning(&window, QObject::tr("Configuration problems"),
+ problems.join(QLatin1Char('\n')));
+ }
+
return app.exec();
}