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.tags/v1.12.90
int ret; | int ret; | ||||
ret = fl_choice(_("%s\n\n" | ret = fl_choice(_("%s\n\n" | ||||
"Attempt to reconnect?"), | "Attempt to reconnect?"), | ||||
fl_yes, fl_no, 0, exitError); | |||||
NULL, fl_yes, fl_no, exitError); | |||||
free(exitError); | free(exitError); | ||||
exitError = NULL; | exitError = NULL; | ||||
if (ret == 0) | |||||
if (ret == 1) | |||||
continue; | continue; | ||||
else | else | ||||
break; | break; |