From 7f336ea9d495952bb95709dad5afbe41d0dac4ad Mon Sep 17 00:00:00 2001 From: Seeker4 Date: Wed, 1 May 2019 08:58:20 -0700 Subject: [PATCH] Offer migration when destination directory is empty as well as when it does not exist --- oscar/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/main.cpp b/oscar/main.cpp index f1a3cf36..9c3f67fd 100644 --- a/oscar/main.cpp +++ b/oscar/main.cpp @@ -444,7 +444,7 @@ int main(int argc, char *argv[]) { qDebug() << "Using " + GetAppData() + " as OSCAR data folder"; QDir newDir(GetAppData()); - if ( ! newDir.exists() ) { // directoy doesn't exist yet, try to migrate old data + if ( ! newDir.exists() || newDir.isEmpty() ) { // directoy doesn't exist yet or is empty, try to migrate old data if (QMessageBox::question(nullptr, QObject::tr("Migrate SleepyHead Data?"), QObject::tr("On the next screen OSCAR will ask you to select a folder with SleepyHead data") +"\n" + QObject::tr("Click [OK] to go to the next screen or [No] if you do not wish to use any SleepyHead data."),