From 1338cffc940eb3c3291ee8bea098f79545e969da Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 28 Feb 2021 21:49:21 +0100 Subject: nxcomp/Children.cpp: print a message if the dialog could not be displayed --- nxcomp/src/Children.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nxcomp/src/Children.cpp b/nxcomp/src/Children.cpp index 829c6fbad..2e89f2e68 100644 --- a/nxcomp/src/Children.cpp +++ b/nxcomp/src/Children.cpp @@ -343,6 +343,15 @@ int NXTransDialog(const char *caption, const char *message, } } + #ifdef TEST + *logofs << "NXTransDialog: WARNING! Could not display dialog.\n" + << logofs_flush; + #endif + + #ifdef WARNING + cerr << "Warning" << ": Could not display dialog.\n"; + #endif + // // Hopefully useless. // -- cgit v1.2.3