Skip to content

Commit

Permalink
Part: do not open a second transaction when there is already a pendin…
Browse files Browse the repository at this point in the history
…g transaction
  • Loading branch information
wwmayer committed Oct 22, 2021
1 parent e3ebe4b commit 3924d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Part/Gui/TaskAttacher.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 3924d41

Please sign in to comment.