summaryrefslogtreecommitdiffstats
path: root/pokemodr/MapUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-11 22:35:28 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-11 22:35:28 +0000
commite11ae3d4907f0ce39b96ba6b29442be05f99b59c (patch)
tree4e042bc22c1808e39c08e49bc548d15f8e6bdab8 /pokemodr/MapUI.cpp
parent3d877ca28bcb7c70945ff408bd0273e176472969 (diff)
[FIX] UI widgets now load upon click
[FIX] Connections fixed now [ADD] Slots for errors and warnings made [ADD] Subclassed QTreeView for PokemodTree class [FIX] No more crashes on exit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@124 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/MapUI.cpp')
-rw-r--r--pokemodr/MapUI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemodr/MapUI.cpp b/pokemodr/MapUI.cpp
index 9364edfc..77ab875e 100644
--- a/pokemodr/MapUI.cpp
+++ b/pokemodr/MapUI.cpp
@@ -42,10 +42,10 @@ MapUI::MapUI(Map* map, QWidget* parent) :
setObjects(map, new Map(*map));
m_model = new TilemapModel(this, static_cast<Map*>(modified())->map(), static_cast<const Pokemod*>(static_cast<Map*>(original())->pokemod()));
connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
- connect(modified(), SIGNAL(error()), this, SLOT(setGui()));
+ connect(modified(), SIGNAL(error(const QString&)), this, SLOT(setGui()));
connect(modified(), SIGNAL(error(QString&)), this, SLOT(errorMessage(QString&)));
connect(modified(), SIGNAL(warning(QString&)), this, SLOT(warningMessage(QString&)));
- connect(modified(), SIGNAL(changed()), this, SIGNAL(changed(true)));
+ connect(modified(), SIGNAL(changed()), this, SLOT(setChanged()));
init();
}