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 e3ebe4bc9f
commit 3924d41073

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)