From 52a64aa5b738858fb6df398fb9e581dd9b88be6a Mon Sep 17 00:00:00 2001 From: tetektoza Date: Tue, 2 Sep 2025 21:40:30 +0200 Subject: [PATCH] Gui: Check for nullptr in activeWindow in CommandView directly --- src/Gui/CommandView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 9726e2e6b2..2895397c51 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -4065,8 +4065,7 @@ void StdCmdClarifySelection::activated(int iMsg) bool StdCmdClarifySelection::isActive() { - auto view = qobject_cast(getMainWindow()->activeWindow()); - return view != nullptr; + return qobject_cast(getMainWindow()->activeWindow()) != nullptr; } //===========================================================================