From 299ed5d29ca3000b633fe3ed8153122a71905d96 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 30 Dec 2021 17:30:31 -0500 Subject: [PATCH] and now fix crash if GUI cannot be initialized --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 476e28789..34185f750 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -310,7 +310,7 @@ int main(int argc, char** argv) { #ifdef HAVE_GUI g.bindEngine(&e); - g.init(); + if (!g.init()) return 1; g.loop(); logI("closing GUI.\n");