diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-06-02 01:50:47 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-06-02 01:50:47 +0000 |
| commit | 87bc8b43600937a3d83cbdf8345e23a484755e3a (patch) | |
| tree | 661131614ed841f68ab8cc23ea372983d49fbe20 /pokemod/Store.cpp | |
| parent | f3e081acd87439efadd5ff4181916e06cc07f051 (diff) | |
| download | sigen-87bc8b43600937a3d83cbdf8345e23a484755e3a.tar.gz sigen-87bc8b43600937a3d83cbdf8345e23a484755e3a.tar.xz sigen-87bc8b43600937a3d83cbdf8345e23a484755e3a.zip | |
[FIX] Modified Rules a bit
[FIX] Updated Rules widget to match up with Rules
[FIX] Reorganized the Rules widget
[FIX] Using KStandardDirs rather than hardcoded ones
[FIX] Cleaned up some minor things with KListWidgets
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@188 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Store.cpp')
| -rw-r--r-- | pokemod/Store.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp index a8ba35d8..10c40dbd 100644 --- a/pokemod/Store.cpp +++ b/pokemod/Store.cpp @@ -82,15 +82,12 @@ void Store::setItem(const int item, const bool state) emit(error(bounds("item"))); return; } - if (state) + if (state && !m_item.contains(item)) { - if (!m_item.contains(item)) - { - m_item.append(item); - emit(changed()); - } + m_item.append(item); + emit(changed()); } - else + else if (m_item.contains(item)) { m_item.removeAll(item); emit(changed()); |
