From 6fd247a152fd37431e2c1eb1b0e5e1dd2fc7f6c7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 8 Mar 2021 14:08:44 +0000 Subject: [PATCH] Check for active tool as well as items. Fixes https://gitlab.com/kicad/code/kicad/issues/7821 --- eeschema/sch_edit_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index eb3a83b751..7f88ababc3 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -371,7 +371,7 @@ void SCH_EDIT_FRAME::setupUIConditions() auto hasElements = [ this ] ( const SELECTION& aSel ) { - return !GetScreen()->Items().empty(); + return !GetScreen()->Items().empty() || !SELECTION_CONDITIONS::Idle( aSel ); }; #define ENABLE( x ) ACTION_CONDITIONS().Enable( x )