diff --git a/src/ui/widget/paint-selector.cpp b/src/ui/widget/paint-selector.cpp index 5ad356bd70b23474f5b7816466c7b594282bde39..fccad1112fbfa42b89f5be97e0bdd8a3a846b972 100644 --- a/src/ui/widget/paint-selector.cpp +++ b/src/ui/widget/paint-selector.cpp @@ -218,6 +218,9 @@ StyleToggleButton *PaintSelector::style_button_add(gchar const *pixmap, PaintSel b->set_visible(true); b->set_has_frame(false); b->set_style(mode); + if (_none) { + b->set_group(*_none); + } b->set_image_from_icon_name(pixmap, Gtk::IconSize::NORMAL); // Previously GTK_ICON_SIZE_BUTTON diff --git a/src/ui/widget/paint-selector.h b/src/ui/widget/paint-selector.h index f76eda68f6cfa78a5620674edaf59896fcf29e63..05ccf8d21b53c1e94db675f93228525251e21299 100644 --- a/src/ui/widget/paint-selector.h +++ b/src/ui/widget/paint-selector.h @@ -80,7 +80,7 @@ class PaintSelector : public Gtk::Box { Mode _mode; Gtk::Box *_style; - StyleToggleButton *_none; + StyleToggleButton *_none = nullptr; StyleToggleButton *_solid; StyleToggleButton *_gradient; StyleToggleButton *_radial;