From 33a233ba7cd41162565ee014473dc605a419479f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 30 Sep 2011 12:21:58 +0000 Subject: [PATCH] Avoid resetting the options whenever you click on the window. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4680 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- vncviewer/OptionsDialog.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index 7543579e..86291404 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -122,7 +122,9 @@ void OptionsDialog::removeCallback(OptionsCallback *cb) void OptionsDialog::show(void) { - loadOptions(); + /* show() gets called for raise events as well */ + if (!shown()) + loadOptions(); Fl_Window::show(); } -- 2.39.5