diff options
Diffstat (limited to 'pokemod/Store.cpp')
| -rw-r--r-- | pokemod/Store.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp index 3acffcac..0a873125 100644 --- a/pokemod/Store.cpp +++ b/pokemod/Store.cpp @@ -53,9 +53,7 @@ void Pokemod::Store::validate() if (m_name.isEmpty()) emit(error("Name is empty")); if (m_item.size()) - { TEST_LIST(setItem, item); - } else emit(error("No items in the store")); TEST_END(); @@ -82,11 +80,8 @@ void Pokemod::Store::setName(const QString& name) void Pokemod::Store::setItem(const int item, const bool state) { if (qobject_cast<const Pokemod*>(pokemod())->itemIndex(item) == INT_MAX) - { emit(error(bounds("item"))); - return; - } - if (state && !m_item.contains(item)) + else if (state && !m_item.contains(item)) { m_item.append(item); emit(changed()); |
