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 0a8c2e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/initialsettingswizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0a8c2e5

Please sign in to comment.