diff options
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 747d1df04..bfc7c3069 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -25,6 +25,7 @@ #include "wx_util.h" #include "file_picker_ctrl.h" #include "static_text.h" +#include "password_entry.h" #include "lib/config.h" #include "lib/job_manager.h" #include "lib/util.h" @@ -293,6 +294,14 @@ checked_set (wxTextCtrl* widget, string value) } void +checked_set (PasswordEntry* entry, string value) +{ + if (entry->get() != value) { + entry->set(value); + } +} + +void checked_set (wxTextCtrl* widget, wxString value) { if (widget->GetValue() != value) { |
