summaryrefslogtreecommitdiffstats
path: root/pokemodr/ObjectUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-16 16:55:28 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-16 16:55:28 +0000
commit9c1388c7964bd3b4ae147e39c146c96dc20947e9 (patch)
tree09628e1b12604d3194b7056c31df0573af4239bd /pokemodr/ObjectUI.cpp
parenta2a81fa0eee00670a1e18918458f6ac12860d59c (diff)
downloadsigen-9c1388c7964bd3b4ae147e39c146c96dc20947e9.tar.gz
sigen-9c1388c7964bd3b4ae147e39c146c96dc20947e9.tar.xz
sigen-9c1388c7964bd3b4ae147e39c146c96dc20947e9.zip
[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
Diffstat (limited to 'pokemodr/ObjectUI.cpp')
-rw-r--r--pokemodr/ObjectUI.cpp4
1 files changed, 1 insertions, 3 deletions
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()