소스 검색

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.
tags/v1.12.90
Pierre Ossman 2 년 전
부모
커밋
7fe85cd4a7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      vncviewer/vncviewer.cxx

+ 2
- 2
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;

Loading…
취소
저장