summaryrefslogtreecommitdiffstats
path: root/pokemod/Store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Store.cpp')
-rw-r--r--pokemod/Store.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp
index 0358e473..e0a54159 100644
--- a/pokemod/Store.cpp
+++ b/pokemod/Store.cpp
@@ -73,6 +73,7 @@ QDomElement Store::save() const
void Store::setName(const QString& name)
{
m_name = name;
+ emit(changed());
}
void Store::setItem(const int item, const bool state)
@@ -85,10 +86,16 @@ void Store::setItem(const int item, const bool state)
if (state)
{
if (!m_item.contains(item))
+ {
m_item.append(item);
+ emit(changed());
+ }
}
else
+ {
m_item.removeAll(item);
+ emit(changed());
+ }
}
QString Store::name() const