From 2bc8ed561ec16ab9fe81460b2a8c036acc10ef73 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Thu, 20 Apr 2023 08:51:44 +0200 Subject: [PATCH] [Draft] Disable Draft_AddConstruction if there is no selection (#9322) --- src/Mod/Draft/draftguitools/gui_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftguitools/gui_groups.py b/src/Mod/Draft/draftguitools/gui_groups.py index 99968bbce6..09bafdc624 100644 --- a/src/Mod/Draft/draftguitools/gui_groups.py +++ b/src/Mod/Draft/draftguitools/gui_groups.py @@ -287,7 +287,7 @@ class SetAutoGroup(gui_base.GuiCommandSimplest): Gui.addCommand('Draft_AutoGroup', SetAutoGroup()) -class AddToConstruction(gui_base.GuiCommandSimplest): +class AddToConstruction(gui_base.GuiCommandNeedsSelection): """Gui Command for the AddToConstruction tool. It adds the selected objects to the construction group