Resolved bug affecting the negative spot pickers

This commit is contained in:
Dániel Battyányi
2023-07-18 18:36:54 +02:00
parent 2fd18f0284
commit 0ab53c39d1
2 changed files with 2 additions and 4 deletions

View File

@@ -262,8 +262,6 @@ FilmNegative::FilmNegative() :
pack_start(*refPicker, Gtk::PACK_SHRINK, 0); pack_start(*refPicker, Gtk::PACK_SHRINK, 0);
//BUG: After selecting a spot for the first time after the button is toggled, picking is still possible, while the button is NOT toggled. After picking for the second time picking is only possible after retoggleing the button
picker->_spotButton->signal_toggled().connect(sigc::mem_fun(*this, &FilmNegative::editToggled)); picker->_spotButton->signal_toggled().connect(sigc::mem_fun(*this, &FilmNegative::editToggled));
refPicker->_spotButton->signal_toggled().connect(sigc::mem_fun(*this, &FilmNegative::refSpotToggled)); refPicker->_spotButton->signal_toggled().connect(sigc::mem_fun(*this, &FilmNegative::refSpotToggled));

View File

@@ -702,9 +702,9 @@ class SpotPicker : public Gtk::Grid
SpotPicker(int const defaultValue, Glib::ustring const &buttonKey, Glib::ustring const &buttonTooltip, Glib::ustring const &labelKey); SpotPicker(int const defaultValue, Glib::ustring const &buttonKey, Glib::ustring const &buttonTooltip, Glib::ustring const &labelKey);
~SpotPicker(); ~SpotPicker();
inline Gtk::TreeModel::iterator get_active() inline bool get_active()
{ {
return _spotSizeSetter->get_active(); return _spotButton->get_active();
} }
void set_active(bool b) void set_active(bool b)
{ {