mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-01 18:40:12 -05:00
Merge pull request #25 from gh2k/char-exceptions
Display char* excptions when Something Bad happens
This commit is contained in:
commit
0e8e63202d
@ -44,9 +44,18 @@ int main(int argc, char *argv[])
|
|||||||
"}" );
|
"}" );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Fractorium w;
|
int rv = -1;
|
||||||
w.show();
|
|
||||||
a.installEventFilter(&w);
|
try
|
||||||
return a.exec();
|
{
|
||||||
|
Fractorium w;
|
||||||
|
w.show();
|
||||||
|
a.installEventFilter(&w);
|
||||||
|
rv = a.exec();
|
||||||
|
} catch (const char *e) {
|
||||||
|
QMessageBox::critical(0, "Fatal Error", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user