diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-03-09 22:20:15 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-03-09 22:20:15 +0000 |
| commit | 0191933210bd20a59527fcf2732a4f3c846fb2a9 (patch) | |
| tree | 4779040481aabbe121cf50286a0ad2f5a316c70e /pokemodr/PokeModrUI.cpp | |
| parent | 68447b2a21c928526b2a7e614a1d56484f379bc6 (diff) | |
| download | sigen-0191933210bd20a59527fcf2732a4f3c846fb2a9.tar.gz sigen-0191933210bd20a59527fcf2732a4f3c846fb2a9.tar.xz sigen-0191933210bd20a59527fcf2732a4f3c846fb2a9.zip | |
[ADD] ItemType now has a count descriptor
[ADD] Species now has a flee chance
[FIX] Empty fields removed from .ui files
[FIX] Fixed compile errors in pokemodr
[ADD] Trainer now helps to simplify MapTrainers
[ADD] Trainer UI file
[FIX] MapTrainer dialogs condensed
[FIX] Home direcotry now gotten by QDir::homePath() rather than ~
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@93 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/PokeModrUI.cpp')
| -rw-r--r-- | pokemodr/PokeModrUI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp index 060fab31..adc1e2b2 100644 --- a/pokemodr/PokeModrUI.cpp +++ b/pokemodr/PokeModrUI.cpp @@ -216,7 +216,7 @@ void PokeModrUI::on_actionSave_triggered() { if (!treePokemod->currentItem()) return; - treePokemod->currentItem()->save(); + static_cast<PokeModTreeItem*>(treePokemod->currentItem())->save(); static_cast<Pokemod*>(static_cast<PokeModTreeItem*>(treePokemod->currentItem())->getObject())->getPokemod()->save(); } @@ -227,8 +227,8 @@ void PokeModrUI::on_actionSaveAs_triggered() QString dir = KFileDialog::getExistingDirectory(KUrl(KStandardDirs::locateLocal("data", "pokegen/pokemods", true)), this, QString::fromUtf8("Open PokéMod")); if (dir != "") { - treePokemod->currentItem()->save(); - static_cast<Pokemod*>(static_cast<PokeModTreeItem*>(treePokemod->currentItem())->getObject())->getPokemod()->setPath(dir); + static_cast<PokeModTreeItem*>(treePokemod->currentItem())->save(); + static_cast<PokeModTreeItem*>(treePokemod->currentItem())->getPokemod()->setPath(dir); } } @@ -256,7 +256,7 @@ void PokeModrUI::on_actionCopy_triggered() return; if (clipboard) delete clipboard; - clipboard = static_cast<PokeModTreeItem*>(treePokemod->currentItem())->makeCopy(); + clipboard = static_cast<PokeModTreeItem*>(treePokemod->currentItem())->copy(); } void PokeModrUI::on_actionPaste_triggered() |
