diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-21 17:22:27 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-21 17:22:27 +0000 |
| commit | fa85318e91ea9bbe4638092767b3b8e0ea64f57c (patch) | |
| tree | eb0bcb69ab624721d59ec9905d392937810cb7b6 /pokemod/Trainer.cpp | |
| parent | 404b30c8601d3a3cb25bb6972427d93b1ebed640 (diff) | |
| download | sigen-fa85318e91ea9bbe4638092767b3b8e0ea64f57c.tar.gz sigen-fa85318e91ea9bbe4638092767b3b8e0ea64f57c.tar.xz sigen-fa85318e91ea9bbe4638092767b3b8e0ea64f57c.zip | |
[FIX] Classes in pokemod will no longer emit a changed signal if not actually changed
[FIX] Logic error with checking to see if certain GUI elements need resetting
[FIX] Using activated rather than currentIndexChanged signals for combo boxes
[FIX] Qt bugs now irrelevant
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@161 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Trainer.cpp')
| -rw-r--r-- | pokemod/Trainer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pokemod/Trainer.cpp b/pokemod/Trainer.cpp index 31bab0c5..ad09adf2 100644 --- a/pokemod/Trainer.cpp +++ b/pokemod/Trainer.cpp @@ -77,8 +77,7 @@ QDomElement Trainer::save() const void Trainer::setName(const QString& name) { - m_name = name; - emit(changed()); + CHECK(name); } void Trainer::setMoneyFactor(const int moneyFactor) @@ -88,8 +87,7 @@ void Trainer::setMoneyFactor(const int moneyFactor) emit(error(bounds("moneyFactor"))); return; } - m_moneyFactor = moneyFactor; - emit(changed()); + CHECK(moneyFactor); } void Trainer::setSkin(const QPixmap& skin) |
