mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 00:47:48 -07:00
make sure xml file is uploaded (#2440)
This commit is contained in:
@@ -1031,6 +1031,11 @@ void MainWindow::actAddCustomSet()
|
||||
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();
|
||||
int nextPrefix = getNextCustomSetPrefix(dir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user