From 3924d410730ecb7c5dcccef87cc815b9b714c105 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 22 Oct 2021 18:49:49 +0200 Subject: [PATCH] Part: do not open a second transaction when there is already a pending transaction --- src/Mod/Part/Gui/TaskAttacher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/TaskAttacher.cpp b/src/Mod/Part/Gui/TaskAttacher.cpp index 8f608f7f8a74..0c7273c858b9 100644 --- a/src/Mod/Part/Gui/TaskAttacher.cpp +++ b/src/Mod/Part/Gui/TaskAttacher.cpp @@ -1060,7 +1060,8 @@ TaskDlgAttacher::~TaskDlgAttacher() void TaskDlgAttacher::open() { Gui::Document* document = Gui::Application::Instance->getDocument(ViewProvider->getObject()->getDocument()); - document->openCommand(QT_TRANSLATE_NOOP("Command", "Edit attachment")); + if (!document->hasPendingCommand()) + document->openCommand(QT_TRANSLATE_NOOP("Command", "Edit attachment")); } void TaskDlgAttacher::clicked(int)