Skip to content

Commit 3390aab

Browse files
committed
fix #292912: use native file dialogues by default also on Linux
We already use them by default on the other platforms, and not using them causes directory bookmark hassles, perhaps due to a bug in Qt
1 parent 85f3641 commit 3390aab

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

mscore/preferences.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ void Preferences::init(bool storeInMemoryOnly)
4848
bool checkExtensionsUpdateStartup = false;
4949
#endif
5050

51-
#if defined(Q_OS_MAC) || defined(Q_OS_WIN)
52-
// use system native file dialogs
53-
// Qt file dialog is very slow on Windows and Mac
54-
bool nativeDialogs = true;
55-
#else
56-
bool nativeDialogs = false; // don't use system native file dialogs
57-
#endif
5851
bool defaultUsePortAudio = false;
5952
bool defaultUsePulseAudio = false;
6053
bool defaultUseJackAudio = false;
@@ -174,7 +167,7 @@ void Preferences::init(bool storeInMemoryOnly)
174167
{PREF_UI_APP_RASTER_HORIZONTAL, new IntPreference(2)},
175168
{PREF_UI_APP_RASTER_VERTICAL, new IntPreference(2)},
176169
{PREF_UI_APP_SHOWSTATUSBAR, new BoolPreference(true)},
177-
{PREF_UI_APP_USENATIVEDIALOGS, new BoolPreference(nativeDialogs)},
170+
{PREF_UI_APP_USENATIVEDIALOGS, new BoolPreference(true)},
178171
{PREF_UI_PIANO_HIGHLIGHTCOLOR, new ColorPreference(QColor("#1259d0"))},
179172
{PREF_UI_SCORE_NOTE_DROPCOLOR, new ColorPreference(QColor("#1778db"))},
180173
{PREF_UI_SCORE_DEFAULTCOLOR, new ColorPreference(QColor("#000000"))},

0 commit comments

Comments
 (0)