]> git.sur5r.net Git - bacula/bacula/commitdiff
Removed MessageBox in dispatch_message if exit_on_error false.
authorNicolas Boichat <nicolas@boichat.ch>
Sat, 8 May 2004 14:14:05 +0000 (14:14 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Sat, 8 May 2004 14:14:05 +0000 (14:14 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1351 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/message.c

index 24d1f90fd534b5dbbd4240c572ad671ec977cf60..4aee2447569a4805cacf729726a1dadfb006be2d 100755 (executable)
@@ -571,7 +571,10 @@ void dispatch_message(JCR *jcr, int type, int level, char *msg)
 #endif
 #if !defined(HAVE_CONSOLE)
 #if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
-       MessageBox(NULL, msg, "Bacula", MB_OK);
+       /* If we don't exit on error, error messages are parsed by UA */
+       if (exit_on_error) {
+          MessageBox(NULL, msg, "Bacula", MB_OK);
+       }
 #endif
 #endif
     }