Part: do not open a second transaction when there is already a pending transaction

This commit is contained in:
wmayer
2021-10-22 18:49:49 +02:00
parent 5abe0ba77f
commit ed0d3c16f2

View File

@@ -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)