From aadf03ecf79b1860e1b3032a936d8a2c658f47b3 Mon Sep 17 00:00:00 2001 From: nicholasbishop Date: Wed, 12 Dec 2007 19:45:17 +0000 Subject: [PATCH] Fixed the filter effects dialog always displaying all the filter settings by overriding the behavior of show_all. --- src/ui/dialog/filter-effects-dialog.cpp | 8 +++++++- src/ui/dialog/filter-effects-dialog.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index e3e9304a8..e84635881 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -1894,7 +1894,6 @@ FilterEffectsDialog::FilterEffectsDialog() show_all_children(); init_settings_widgets(); _primitive_list.update(); - update_settings_view(); } FilterEffectsDialog::~FilterEffectsDialog() @@ -1907,6 +1906,13 @@ void FilterEffectsDialog::set_attrs_locked(const bool l) _locked = l; } +void FilterEffectsDialog::show_all_vfunc() +{ + UI::Widget::Panel::show_all_vfunc(); + + update_settings_view(); +} + void FilterEffectsDialog::init_settings_widgets() { // TODO: Find better range/climb-rate/digits values for the SpinSliders, diff --git a/src/ui/dialog/filter-effects-dialog.h b/src/ui/dialog/filter-effects-dialog.h index 2cbd90f5f..49343c0ce 100644 --- a/src/ui/dialog/filter-effects-dialog.h +++ b/src/ui/dialog/filter-effects-dialog.h @@ -48,6 +48,8 @@ public: { return *new FilterEffectsDialog(); } void set_attrs_locked(const bool); +protected: + virtual void show_all_vfunc(); private: class SignalObserver; -- 2.30.2