Merge pull request #25 from gh2k/char-exceptions

Display char* excptions when Something Bad happens
This commit is contained in:
Matt Feemster 2015-07-27 06:40:08 -07:00
commit 0e8e63202d

View File

@ -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;
}