mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
XML fix
This commit is contained in:
parent
e51aa20420
commit
207d10d3e2
9 changed files with 73 additions and 70 deletions
|
|
@ -102,6 +102,12 @@ void TabDeckStorage::actUpload()
|
|||
DeckList *deck = new DeckList;
|
||||
if (!deck->loadFromFile(filePath, DeckList::CockatriceFormat))
|
||||
return;
|
||||
if (deck->getName().isEmpty()) {
|
||||
QString deckName = QInputDialog::getText(this, tr("Enter deck name"), tr("This decklist does not have a name.\nPlease enter a name:"), QLineEdit::Normal, tr("Unnamed deck"));
|
||||
if (deckName.isEmpty())
|
||||
deckName = tr("Unnamed deck");
|
||||
deck->setName(deckName);
|
||||
}
|
||||
|
||||
QString targetPath;
|
||||
QTreeWidgetItem *curRight = serverDirView->currentItem();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue