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 8fa80ee48e
commit 4528a05113

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)