From 31912ee7c60e7ad54536c2937eac9f6b831fe7d5 Mon Sep 17 00:00:00 2001 From: pliu037 Date: Thu, 31 Jul 2014 04:33:00 -0400 Subject: [PATCH] Oracle will now update whichever cards.xml is being used by Cockatrice as default instead of the previous behaviour of updating cards.xml within the user's app data. --- oracle/src/oraclewizard.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/oracle/src/oraclewizard.cpp b/oracle/src/oraclewizard.cpp index 75381b1d5..48586fb51 100644 --- a/oracle/src/oraclewizard.cpp +++ b/oracle/src/oraclewizard.cpp @@ -372,11 +372,14 @@ void SaveSetsPage::updateTotalProgress(int cardsImported, int setIndex, const QS bool SaveSetsPage::validatePage() { bool ok = false; + QSettings* settings = new QSettings(this); + QString savePath = settings->value("paths/carddatabase").toString(); + //Not really sure if dataDir is necessary anymore, but leaving it in for safety const QString dataDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation); - QDir dir(dataDir); + /*QDir dir(dataDir); if (!dir.exists()) dir.mkpath(dataDir); - QString savePath = dataDir + "/cards.xml"; + QString savePath = dataDir + "/cards.xml";*/ do { QString fileName; if (savePath.isEmpty() || !defaultPathCheckBox->isChecked())