diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-10-14 12:42:05 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-10-14 12:42:05 +0200 |
commit | 7fe85cd4a7ce89b55662fd445b78d50001bad68a (patch) | |
tree | 54bc869c85482fbedca7e4e1b780cf06e0e24424 /vncviewer/vncviewer.cxx | |
parent | 32051b8e53ca5f4c5c9e11a3afc45110c3c396e9 (diff) | |
download | tigervnc-7fe85cd4a7ce89b55662fd445b78d50001bad68a.tar.gz tigervnc-7fe85cd4a7ce89b55662fd445b78d50001bad68a.zip |
Fix closing reconnect dialog logic
If you close the reconnect dialog then we should assume that you want to
close things, not that you want to reconnect. Unfortunately FLTK returns
the first choice when closing the dialog, so that needs to be the
"Cancel" alternative.
Diffstat (limited to 'vncviewer/vncviewer.cxx')
-rw-r--r-- | vncviewer/vncviewer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index d5c2f2bb..c8f5ef3b 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -211,10 +211,10 @@ static void mainloop(const char* vncserver, network::Socket* sock) int ret; ret = fl_choice(_("%s\n\n" "Attempt to reconnect?"), - fl_yes, fl_no, 0, exitError); + NULL, fl_yes, fl_no, exitError); free(exitError); exitError = NULL; - if (ret == 0) + if (ret == 1) continue; else break; |