summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinListObject.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-21 17:22:27 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-21 17:22:27 +0000
commitfa85318e91ea9bbe4638092767b3b8e0ea64f57c (patch)
treeeb0bcb69ab624721d59ec9905d392937810cb7b6 /pokemod/CoinListObject.cpp
parent404b30c8601d3a3cb25bb6972427d93b1ebed640 (diff)
downloadsigen-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/CoinListObject.cpp')
-rw-r--r--pokemod/CoinListObject.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp
index 3eb44e91..ff2b8d80 100644
--- a/pokemod/CoinListObject.cpp
+++ b/pokemod/CoinListObject.cpp
@@ -84,9 +84,7 @@ void CoinListObject::setType(const int type)
emit(error(bounds("type")));
return;
}
- m_type = type;
- m_object = INT_MAX;
- emit(changed());
+ CHECK(type);
}
void CoinListObject::setObject(const int object)
@@ -96,8 +94,7 @@ void CoinListObject::setObject(const int object)
emit(error(bounds("object")));
return;
}
- m_object = object;
- emit(changed());
+ CHECK(object);
}
void CoinListObject::setAmount(const int amount)
@@ -107,14 +104,12 @@ void CoinListObject::setAmount(const int amount)
emit(error(bounds("amount")));
return;
}
- m_amount = amount;
- emit(changed());
+ CHECK(amount);
}
void CoinListObject::setCost(const int cost)
{
- m_cost = cost;
- emit(changed());
+ CHECK(cost);
}
int CoinListObject::type() const