From a8fe62a2b7f87d383c12f924e763979d63d2083a Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Sat, 21 Sep 2019 10:37:01 +1000 Subject: Make sure all conditions reached (minor touchup) --- src/ui/desktop/menubar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui') diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp index 0e19807e6..6fac675c7 100644 --- a/src/ui/desktop/menubar.cpp +++ b/src/ui/desktop/menubar.cpp @@ -83,10 +83,10 @@ static void set_menuitems(unsigned int emitting_verb, bool value) lastverb = emitting_verb; Gtk::CheckMenuItem *check = dynamic_cast(menu.first.second); Gtk::RadioMenuItem *radio = dynamic_cast(menu.first.second); - if (check) { - check->property_active() = value; - } else if (radio) { + if (radio) { radio->property_active() = value; + } else if (check) { + check->property_active() = value; } lastverb = -1; } -- cgit v1.2.3