From: Pierre Ossman Date: Mon, 16 Nov 2020 12:39:48 +0000 (+0100) Subject: Don't show error dialog if exiting without message X-Git-Tag: v1.11.90~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=19165c8f5e71bc5778eef2b66421bd7d1c1cca68;p=tigervnc.git Don't show error dialog if exiting without message This was already handled for most exit conditions, but not the early ones. --- diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index 77ba3d3f..b3371c4c 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -120,7 +120,7 @@ void exit_vncviewer(const char *error) exitMainloop = true; else { // We're early in the startup. Assume we can just exit(). - if (alertOnFatalError) + if (alertOnFatalError && (exitError != NULL)) fl_alert("%s", exitError); exit(EXIT_FAILURE); }