Skip to content

Commit

Permalink
fix: double-check migration folders
Browse files Browse the repository at this point in the history
  • Loading branch information
nullobsi committed Nov 14, 2024
1 parent 97c4344 commit 4fe7a8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/initialsettingswizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ InitialSettingsWizard::InitialSettingsWizard(QWidget* p)
// Unix systems.
#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS)
auto oldConfig = QDir(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/cantata");
// We shouldn't be here if newConfig exists, but since there could
// be data-loss...
auto newConfig = QDir(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/Cantata");

if (oldConfig.exists()) {

if (oldConfig.exists() && !newConfig.exists()) {
migrateDataBox->setChecked(true);
}
else {
Expand Down

0 comments on commit 4fe7a8e

Please sign in to comment.