diff --git a/cockatrice/src/window_main.cpp b/cockatrice/src/window_main.cpp index 11a69852..79b7b7cf 100644 --- a/cockatrice/src/window_main.cpp +++ b/cockatrice/src/window_main.cpp @@ -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);