mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
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:
parent
c3a68fcbd3
commit
31912ee7c6
1 changed files with 5 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue