make sure xml file is uploaded (#2440)
This commit is contained in:
parent
88b4e768c4
commit
b2f2e9db8a
1 changed files with 5 additions and 0 deletions
|
@ -1031,6 +1031,11 @@ void MainWindow::actAddCustomSet()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (QFileInfo(fileName).suffix() != "xml") { // fileName = *.xml
|
||||||
|
QMessageBox::warning(this, tr("Load sets/cards"), tr("You can only import XML databases at this time."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QDir dir = settingsCache->getCustomCardDatabasePath();
|
QDir dir = settingsCache->getCustomCardDatabasePath();
|
||||||
int nextPrefix = getNextCustomSetPrefix(dir);
|
int nextPrefix = getNextCustomSetPrefix(dir);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue