summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-09-30 12:21:58 +0000
committerPierre Ossman <ossman@cendio.se>2011-09-30 12:21:58 +0000
commit33a233ba7cd41162565ee014473dc605a419479f (patch)
tree86648df9caa2045c9f459e849333d62ab443cbb0 /vncviewer
parent5535fe61d625c4afc5df2927a2ff05f681eb6002 (diff)
downloadtigervnc-33a233ba7cd41162565ee014473dc605a419479f.tar.gz
tigervnc-33a233ba7cd41162565ee014473dc605a419479f.zip
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
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/OptionsDialog.cxx4
1 files changed, 3 insertions, 1 deletions
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();
}