aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vncviewer/UserDialog.cxx3
-rw-r--r--vncviewer/UserDialog.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/vncviewer/UserDialog.cxx b/vncviewer/UserDialog.cxx
index b3840d62..ed75a53c 100644
--- a/vncviewer/UserDialog.cxx
+++ b/vncviewer/UserDialog.cxx
@@ -57,6 +57,9 @@ using namespace rfb;
static Fl_Pixmap secure_icon(secure);
static Fl_Pixmap insecure_icon(insecure);
+std::string UserDialog::savedUsername;
+std::string UserDialog::savedPassword;
+
static long ret_val = 0;
static void button_cb(Fl_Widget *widget, long val) {
diff --git a/vncviewer/UserDialog.h b/vncviewer/UserDialog.h
index c16923c1..ddafbc3c 100644
--- a/vncviewer/UserDialog.h
+++ b/vncviewer/UserDialog.h
@@ -38,8 +38,8 @@ public:
void resetPassword();
private:
- std::string savedUsername;
- std::string savedPassword;
+ static std::string savedUsername;
+ static std::string savedPassword;
};
#endif