From 37f2c9a778abbd660c3631a279915714468243fe Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Mon, 13 Nov 2023 10:18:57 +0100 Subject: [PATCH] Improve Mu3/Mu4 compatibility On top of PR #14 --- blacknotes.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blacknotes.qml b/blacknotes.qml index a9d44ab..935dffd 100644 --- a/blacknotes.qml +++ b/blacknotes.qml @@ -47,7 +47,7 @@ MuseScore { title: qsTr("Unsupported MuseScore Version") text: qsTr("This plugin needs MuseScore 3.0.2 or later") onAccepted: { - quit() + (typeof(quit) === 'undefined' ? Qt.quit : quit)() } } @@ -154,6 +154,6 @@ MuseScore { curScore.endCmd() - quit(); + (typeof(quit) === 'undefined' ? Qt.quit : quit)() } }