From 4528a05113b8042507f009313684723402d5a15a Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Fri, 18 Oct 2024 13:52:00 +0200 Subject: [PATCH] Fix datum not being cancelled --- src/Mod/Part/Gui/TaskAttacher.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/TaskAttacher.cpp b/src/Mod/Part/Gui/TaskAttacher.cpp index 23510f7721..6acff9c966 100644 --- a/src/Mod/Part/Gui/TaskAttacher.cpp +++ b/src/Mod/Part/Gui/TaskAttacher.cpp @@ -1073,7 +1073,9 @@ TaskDlgAttacher::~TaskDlgAttacher() = default; void TaskDlgAttacher::open() { - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit attachment")); + if (!Gui::Command::hasPendingCommand()) { + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit attachment")); + } } void TaskDlgAttacher::clicked(int)