and now fix crash if GUI cannot be initialized
This commit is contained in:
parent
8cd54ebe7b
commit
299ed5d29c
|
@ -310,7 +310,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
#ifdef HAVE_GUI
|
||||||
g.bindEngine(&e);
|
g.bindEngine(&e);
|
||||||
g.init();
|
if (!g.init()) return 1;
|
||||||
|
|
||||||
g.loop();
|
g.loop();
|
||||||
logI("closing GUI.\n");
|
logI("closing GUI.\n");
|
||||||
|
|
Loading…
Reference in New Issue