Skip to content

Commit a8835be

Browse files
committed
fix #17339: MacOSX, startup dialog should not appear if score double clicked in Finder
1 parent 13ded89 commit a8835be

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mscore/musescore.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,8 +2419,11 @@ int main(int argc, char* av[])
24192419
++files;
24202420
}
24212421
#ifdef Q_WS_MAC
2422-
if (!mscore->restoreSession(preferences.sessionStart == LAST_SESSION))
2423-
loadScores(static_cast<MuseScoreApplication*>(qApp)->paths);
2422+
if (!mscore->restoreSession(preferences.sessionStart == LAST_SESSION)) {
2423+
MuseScoreApplication* mApp = static_cast<MuseScoreApplication*>(qApp);
2424+
loadScores(mApp->paths);
2425+
files = mApp->paths.size();
2426+
}
24242427
#else
24252428
//
24262429
// TODO: delete old session backups

0 commit comments

Comments
 (0)