diff options
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/preferences-widget.cpp | 3 | ||||
| -rw-r--r-- | src/ui/widget/preferences-widget.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp index a6302aa9d..e1671e5b1 100644 --- a/src/ui/widget/preferences-widget.cpp +++ b/src/ui/widget/preferences-widget.cpp @@ -277,13 +277,12 @@ void PrefEntry::init(const std::string& prefs_path, const std::string& attr, this->set_text(prefs_get_string_attribute(_prefs_path.c_str(), _attr.c_str())); } -void PrefEntry::on_activate() +void PrefEntry::on_changed() { if (this->is_visible()) //only take action if user changed value { prefs_set_string_attribute(_prefs_path.c_str(), _attr.c_str(), this->get_text().c_str()); } - return; } } // namespace Widget diff --git a/src/ui/widget/preferences-widget.h b/src/ui/widget/preferences-widget.h index 5b6402883..4ed0a35aa 100644 --- a/src/ui/widget/preferences-widget.h +++ b/src/ui/widget/preferences-widget.h @@ -97,7 +97,7 @@ public: protected: std::string _prefs_path; std::string _attr; - void on_activate(); + void on_changed(); }; class DialogPage : public Gtk::Table |
