From 0a8c2e598cd4e09794a7816beb18c08c142ce818 Mon Sep 17 00:00:00 2001 From: Citlali del Rey Date: Wed, 13 Nov 2024 11:55:57 -0800 Subject: [PATCH] fix: double-check migration folders --- gui/initialsettingswizard.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/initialsettingswizard.cpp b/gui/initialsettingswizard.cpp index d54f9264..acafa374 100644 --- a/gui/initialsettingswizard.cpp +++ b/gui/initialsettingswizard.cpp @@ -120,8 +120,11 @@ 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 {