From 9c1388c7964bd3b4ae147e39c146c96dc20947e9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 16 May 2008 16:55:28 +0000 Subject: [FIX] TypeModel done for data() in models [FIX] Another Qt bug found :( [FIX] Better connections for the editor widget git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@141 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/ObjectUI.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pokemodr/ObjectUI.cpp') diff --git a/pokemodr/ObjectUI.cpp b/pokemodr/ObjectUI.cpp index 29423d8c..50267952 100644 --- a/pokemodr/ObjectUI.cpp +++ b/pokemodr/ObjectUI.cpp @@ -35,7 +35,6 @@ ObjectUI::ObjectUI(QWidget* parent) : m_object_mod(NULL) { connect(this, SIGNAL(changed(bool)), SLOT(setChanged(bool))); - connect(this, SIGNAL(changed()), SLOT(setChanged())); } ObjectUI::~ObjectUI() @@ -130,11 +129,10 @@ void ObjectUI::setObjects(Object* original, Object* modified) m_object = original; m_object_mod = modified; connect(m_object_mod, SIGNAL(changed()), this, SIGNAL(changed())); + connect(m_object_mod, SIGNAL(changed()), this, SLOT(setGui())); connect(m_object_mod, SIGNAL(error(const QString&)), this, SLOT(setGui())); connect(m_object_mod, SIGNAL(error(const QString&)), this, SLOT(errorMessage(const QString&))); connect(m_object_mod, SIGNAL(warning(const QString&)), this, SLOT(warningMessage(const QString&))); - connect(m_object_mod, SIGNAL(changed()), this, SLOT(setChanged())); - connect(m_object_mod, SIGNAL(changed()), this, SLOT(setGui())); } void ObjectUI::init() -- cgit