From a9c0e474d76c3f3f4d65e228f01f4e26653dd7bc Mon Sep 17 00:00:00 2001 From: slipher Date: Sun, 29 Jul 2018 21:32:04 -0700 Subject: [PATCH] Add a test of exception handling on startup since I've had problems with it being broken --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index 79fcfee..a7ce606 100644 --- a/main.cpp +++ b/main.cpp @@ -60,6 +60,12 @@ int main(int argc, char *argv[]) qDebug() << "Git version:" << GIT_VERSION; LogSettings(); + try { + qDebug() << "Testing exception handling..."; + throw 1; + } catch(int) { + qDebug() << "Exception handling works"; + } app.setWindowIcon(QIcon(":resources/updater.png")); int fontId = QFontDatabase::addApplicationFont(":resources/Roboto-Regular.ttf");