]> source.dussan.org Git - tigervnc.git/commitdiff
Don't show error dialog if exiting without message
authorPierre Ossman <ossman@cendio.se>
Mon, 16 Nov 2020 12:39:48 +0000 (13:39 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 16 Nov 2020 12:39:48 +0000 (13:39 +0100)
This was already handled for most exit conditions, but not the early
ones.

vncviewer/vncviewer.cxx

index 77ba3d3f42cc1a870dfc8c043fc84a45e3b45ce7..b3371c4cb9b08cf67141a8f387a6ebcdef5281a7 100644 (file)
@@ -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);
   }