summaryrefslogtreecommitdiffstats
path: root/pokemodr/MapUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/MapUI.cpp')
-rw-r--r--pokemodr/MapUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemodr/MapUI.cpp b/pokemodr/MapUI.cpp
index f4f4b175..ecac2b10 100644
--- a/pokemodr/MapUI.cpp
+++ b/pokemodr/MapUI.cpp
@@ -42,7 +42,7 @@ MapUI::MapUI(Map* m, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(map, map_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < map->getWarpCount(); ++i)
{
const MapWarp* w = map->getWarp(i);
@@ -56,6 +56,7 @@ MapUI::MapUI(Map* m, QWidget* parent) :
varTilemap->verticalHeader()->setDefaultSectionSize(64);
varTilemap->setModel(model);
varTilemap->setItemDelegate(delegate);
+ emit(changed(false));
setGui();
}