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/MapWildList.cpp | |
| parent | 404b30c8601d3a3cb25bb6972427d93b1ebed640 (diff) | |
[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/MapWildList.cpp')
| -rw-r--r-- | pokemod/MapWildList.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/pokemod/MapWildList.cpp b/pokemod/MapWildList.cpp index e9e7b71c..df47e517 100644 --- a/pokemod/MapWildList.cpp +++ b/pokemod/MapWildList.cpp @@ -107,9 +107,7 @@ void MapWildList::setControl(const int control) emit(error(bounds("control"))); return; } - m_control = control; - m_value = INT_MAX; - emit(changed()); + CHECK(control); } void MapWildList::setValue(const int value) @@ -127,8 +125,7 @@ void MapWildList::setValue(const int value) const ItemEffect* effect = item->effect(j); if ((effect->effect() == ItemEffect::E_Fish) && (effect->value2() == value)) { - m_value = value; - emit(changed()); + CHECK(value); return; } } @@ -170,8 +167,7 @@ void MapWildList::setScope(const int scope) const ItemEffect* effect = item->effect(j); if ((effect->effect() == ItemEffect::E_Scope) && (effect->value2() == scope)) { - m_scope = scope; - emit(changed()); + CHECK(scope); return; } } @@ -179,10 +175,7 @@ void MapWildList::setScope(const int scope) emit(error(bounds("value"))); } else - { - m_scope = scope; - emit(changed()); - } + CHECK(scope); } int MapWildList::control() const |
