diff --git a/src/notation/view/notationviewinputcontroller.cpp b/src/notation/view/notationviewinputcontroller.cpp index ca06a3b27df43..c914f939780cf 100644 --- a/src/notation/view/notationviewinputcontroller.cpp +++ b/src/notation/view/notationviewinputcontroller.cpp @@ -27,10 +27,11 @@ #include #include -#include "log.h" #include "commonscene/commonscenetypes.h" #include "abstractelementpopupmodel.h" +#include "log.h" + using namespace mu; using namespace mu::notation; using namespace mu::engraving; @@ -962,7 +963,11 @@ void NotationViewInputController::mouseDoubleClickEvent(QMouseEvent* event) } if (!actionCode.empty()) { - dispatcher()->dispatch(actionCode, ActionData::make_arg1(m_logicalBeginPoint)); + //! NOTE: call with delay because the action can open dialogs, + //! but we need to finish events processing first + QTimer::singleShot(100, [this, actionCode]() { + dispatcher()->dispatch(actionCode, ActionData::make_arg1(m_logicalBeginPoint)); + }); } }