diff options
Diffstat (limited to 'src/preferences/upgrade.cpp')
-rw-r--r-- | src/preferences/upgrade.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/preferences/upgrade.cpp b/src/preferences/upgrade.cpp index cc58c00717..afc8961b1b 100644 --- a/src/preferences/upgrade.cpp +++ b/src/preferences/upgrade.cpp @@ -144,7 +144,7 @@ UserSettingsPointer Upgrade::versionUpgrade(const QString& settingsPath) { #else oldFilePath = oldLocation.filePath(".mixxx.cfg"); #endif - newFilePath = newLocation.filePath(SETTINGS_FILE); + newFilePath = newLocation.filePath(MIXXX_SETTINGS_FILE); oldFile = new QFile(oldFilePath); if (oldFile->copy(newFilePath)) { oldFile->remove(); @@ -177,7 +177,7 @@ UserSettingsPointer Upgrade::versionUpgrade(const QString& settingsPath) { // Read the config file from home directory UserSettingsPointer config(new ConfigObject<ConfigValue>( - QDir(settingsPath).filePath(SETTINGS_FILE))); + QDir(settingsPath).filePath(MIXXX_SETTINGS_FILE))); QString configVersion = config->getValueString(ConfigKey("[Config]","Version")); @@ -189,7 +189,8 @@ UserSettingsPointer Upgrade::versionUpgrade(const QString& settingsPath) { QScopedPointer<QFile> oldConfigFile(new QFile(QDir::homePath().append("/").append(".mixxx/mixxx.cfg"))); if (oldConfigFile->exists() && ! CmdlineArgs::Instance().getSettingsPathSet()) { qDebug() << "Found pre-1.9.0 config for OS X"; - // Note: We changed SETTINGS_PATH in 1.9.0 final on OS X so it must be hardcoded to ".mixxx" here for legacy. + // Note: We changed MIXXX_SETTINGS_PATH in 1.9.0 final on OS X so + // it must be hardcoded to ".mixxx" here for legacy. config = UserSettingsPointer(new ConfigObject<ConfigValue>( QDir::homePath().append("/.mixxx/mixxx.cfg"))); // Just to be sure all files like logs and soundconfig go with mixxx.cfg @@ -205,7 +206,9 @@ UserSettingsPointer Upgrade::versionUpgrade(const QString& settingsPath) { QScopedPointer<QFile> oldConfigFile(new QFile(QDir::homePath().append("/Local Settings/Application Data/Mixxx/mixxx.cfg"))); if (oldConfigFile->exists() && ! CmdlineArgs::Instance().getSettingsPathSet()) { qDebug() << "Found pre-1.12.0 config for Windows"; - // Note: We changed SETTINGS_PATH in 1.12.0 final on Windows so it must be hardcoded to "Local Settings/Application Data/Mixxx/" here for legacy. + // Note: We changed MIXXX_SETTINGS_PATH in 1.12.0 final on Windows + // so it must be hardcoded to "Local Settings/Application + // Data/Mixxx/" here for legacy. config = UserSettingsPointer(new ConfigObject<ConfigValue>( QDir::homePath().append("/Local Settings/Application Data/Mixxx/mixxx.cfg"))); // Just to be sure all files like logs and soundconfig go with mixxx.cfg @@ -318,7 +321,7 @@ UserSettingsPointer Upgrade::versionUpgrade(const QString& settingsPath) { // Reload the configuration file from the new location. // (We want to make sure we save to the new location...) config = UserSettingsPointer(new ConfigObject<ConfigValue>( - QDir(settingsPath).filePath(SETTINGS_FILE))); + QDir(settingsPath).filePath(MIXXX_SETTINGS_FILE))); #endif configVersion = "1.9.0"; config->set(ConfigKey("[Config]","Version"), ConfigValue("1.9.0")); |