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.

This commit is contained in:
pliu037 2014-07-31 04:33:00 -04:00
parent c3a68fcbd3
commit 31912ee7c6

View file

@ -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())