aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/OptionsDialog.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-07-23 13:32:50 +0200
committerPierre Ossman <ossman@cendio.se>2021-07-23 13:32:50 +0200
commitdccb95f345f7a9c5aa785a19d1bfa3fdecd8f8e0 (patch)
tree7353f81b1bee11732b73a90894c8161409f437df /vncviewer/OptionsDialog.cxx
parent44b085adee9a0ecf697b48e38d2434d920385928 (diff)
downloadtigervnc-dccb95f345f7a9c5aa785a19d1bfa3fdecd8f8e0.tar.gz
tigervnc-dccb95f345f7a9c5aa785a19d1bfa3fdecd8f8e0.zip
Expose reconnect setting in options dialog
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r--vncviewer/OptionsDialog.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx
index 190d8aa3..66a12fd8 100644
--- a/vncviewer/OptionsDialog.cxx
+++ b/vncviewer/OptionsDialog.cxx
@@ -314,6 +314,7 @@ void OptionsDialog::loadOptions(void)
/* Misc. */
sharedCheckbox->value(shared);
+ reconnectCheckbox->value(reconnectOnError);
dotCursorCheckbox->value(dotWhenNoCursor);
}
@@ -431,6 +432,7 @@ void OptionsDialog::storeOptions(void)
/* Misc. */
shared.setParam(sharedCheckbox->value());
+ reconnectOnError.setParam(reconnectCheckbox->value());
dotWhenNoCursor.setParam(dotCursorCheckbox->value());
std::map<OptionsCallback*, void*>::const_iterator iter;
@@ -873,6 +875,12 @@ void OptionsDialog::createMiscPage(int tx, int ty, int tw, int th)
_("Shared (don't disconnect other viewers)")));
ty += CHECK_HEIGHT + TIGHT_MARGIN;
+ reconnectCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
+ CHECK_MIN_WIDTH,
+ CHECK_HEIGHT,
+ _("Ask to reconnect on connection errors")));
+ ty += CHECK_HEIGHT + TIGHT_MARGIN;
+
dotCursorCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
CHECK_MIN_WIDTH,
CHECK_HEIGHT,