From e11ae3d4907f0ce39b96ba6b29442be05f99b59c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 11 May 2008 22:35:28 +0000 Subject: [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 --- pokemodr/AbilityUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pokemodr/AbilityUI.cpp') diff --git a/pokemodr/AbilityUI.cpp b/pokemodr/AbilityUI.cpp index bb1f21c4..79a88362 100644 --- a/pokemodr/AbilityUI.cpp +++ b/pokemodr/AbilityUI.cpp @@ -28,10 +28,10 @@ AbilityUI::AbilityUI(Ability* ability, QWidget* parent) : QMetaObject::connectSlotsByName(this); setObjects(ability, new Ability(*ability)); 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(const QString&)), this, SLOT(errorMessage(const QString&))); connect(modified(), SIGNAL(warning(const QString&)), this, SLOT(warningMessage(const QString&))); - connect(modified(), SIGNAL(changed()), this, SIGNAL(changed(true))); + connect(modified(), SIGNAL(changed()), this, SLOT(setChanged())); init(); } -- cgit