Skip to content

Commit

Permalink
fix -R, --revert-settings to only remove the preferences file
Browse files Browse the repository at this point in the history
MuseScore*.ini, and not also shortcuts, custom workspaces and palettes,
translations, etc., this is left for -F --factory-settings,
see https://musescore.org/en/node/276560

fix deletePreferences to only delete dataPath on useFactorySettings
  • Loading branch information
Jojo-Schmitz committed Oct 27, 2018
1 parent 0afa2ff commit 5e0c276
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6697,7 +6697,8 @@ int main(int argc, char* av[])
dataPath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);

if (deletePreferences) {
QDir(dataPath).removeRecursively();
if (useFactorySettings)
QDir(dataPath).removeRecursively();
QSettings settings;
QFile::remove(settings.fileName() + ".lock"); //forcibly remove lock
QFile::remove(settings.fileName());
Expand Down

0 comments on commit 5e0c276

Please sign in to comment.