summaryrefslogtreecommitdiffstats
path: root/pokemodr/StoreUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/StoreUI.cpp')
-rw-r--r--pokemodr/StoreUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemodr/StoreUI.cpp b/pokemodr/StoreUI.cpp
index 7259058c..4d86d7c1 100644
--- a/pokemodr/StoreUI.cpp
+++ b/pokemodr/StoreUI.cpp
@@ -41,13 +41,14 @@ StoreUI::StoreUI(Store* s, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(store, store_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < store->getPokemod()->getItemCount(); ++i)
{
const Item* it = store->getPokemod()->getItem(i);
QListWidgetItem* lwi = new QListWidgetItem(it->getName(), varItems);
lwi->setData(Qt::UserRole, it->getId());
}
+ emit(changed(false));
setGui();
}