aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-02-28 21:38:25 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-08 08:07:02 +0200
commitd7a49834ea4b3fbe9703cdd408b1a4b4a36a1636 (patch)
tree7cb7da51343d003cec53798d50152f022b0e3c68
parentc3476b6a801ae6355664d5af24ab5a87022c58f6 (diff)
downloadnx-libs-d7a49834ea4b3fbe9703cdd408b1a4b4a36a1636.tar.gz
nx-libs-d7a49834ea4b3fbe9703cdd408b1a4b4a36a1636.tar.bz2
nx-libs-d7a49834ea4b3fbe9703cdd408b1a4b4a36a1636.zip
nxcomp/Children.cpp: display dialog text in output
This ensures the dialog text is visible in the log which is useful when the dialog display tool (nxclient, nxdialog, ...) fails or cannot be found. Fixes ArcticaProject/nx-libs#915
-rw-r--r--nxcomp/src/Children.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/nxcomp/src/Children.cpp b/nxcomp/src/Children.cpp
index 036cffa95..40eccd9da 100644
--- a/nxcomp/src/Children.cpp
+++ b/nxcomp/src/Children.cpp
@@ -216,7 +216,15 @@ int NXTransDialog(const char *caption, const char *message,
UnsetEnv("LD_LIBRARY_PATH");
- for (int i = 0; i < 2; i++)
+ if (!pulldown)
+ {
+ cerr << "Info: Upcoming dialog:\n"
+ << "/-----------------------------------------------------------\n"
+ << caption << ":\n"
+ << message << "\n"
+ << "\\-----------------------------------------------------------\n";
+ }
+
{
if (local != 0)
{