This commit is contained in:
Max-Wilhelm Bruker 2009-12-01 10:43:46 +01:00
parent e51aa20420
commit 207d10d3e2
9 changed files with 73 additions and 70 deletions

View file

@ -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();