From fa85318e91ea9bbe4638092767b3b8e0ea64f57c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 21 May 2008 17:22:27 +0000 Subject: [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 --- pokemod/CoinListObject.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'pokemod/CoinListObject.cpp') 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 -- cgit