diff --git a/Source/Fractorium/Main.cpp b/Source/Fractorium/Main.cpp index 1b7c566..e929aee 100644 --- a/Source/Fractorium/Main.cpp +++ b/Source/Fractorium/Main.cpp @@ -44,9 +44,18 @@ int main(int argc, char *argv[]) "}" ); #endif - Fractorium w; - w.show(); - a.installEventFilter(&w); - return a.exec(); + int rv = -1; + + try + { + Fractorium w; + w.show(); + a.installEventFilter(&w); + rv = a.exec(); + } catch (const char *e) { + QMessageBox::critical(0, "Fatal Error", e); + } + + return rv; }