added empty string check when save and quiting from the deck editor.

Issue: 3052
This commit is contained in:
techdragon.nguyen@gmail.com
2011-02-08 06:30:18 +00:00
parent 104a626b3b
commit 1b5a379387

View File

@@ -305,7 +305,8 @@ void GameStateDeckViewer::saveDeck()
{
//update the corresponding meta data object
DeckMetaData *metaData = DeckManager::GetInstance()->getDeckMetaDataById( myDeck->parent->meta_id, false );
metaData->setDeckName( newDeckname );
if ( newDeckname.length() > 0 )
metaData->setDeckName( newDeckname );
mSwitching = true;
myDeck->save();
playerdata->save();