Fix datum not being cancelled

This commit is contained in:
PaddleStroke
2024-10-18 13:52:00 +02:00
committed by Yorik van Havre
parent cacfe4b035
commit 03bce41c83

View File

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