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
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx
index 7543579..8629140 100644
--- a/vncviewer/OptionsDialog.cxx
+++ b/vncviewer/OptionsDialog.cxx
@@ -122,7 +122,9 @@
 
 void OptionsDialog::show(void)
 {
-  loadOptions();
+  /* show() gets called for raise events as well */
+  if (!shown())
+    loadOptions();
 
   Fl_Window::show();
 }