summaryrefslogtreecommitdiffstats
path: root/sigmodr/models/RootModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/models/RootModel.cpp')
-rw-r--r--sigmodr/models/RootModel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sigmodr/models/RootModel.cpp b/sigmodr/models/RootModel.cpp
index 13031a9d..e433e487 100644
--- a/sigmodr/models/RootModel.cpp
+++ b/sigmodr/models/RootModel.cpp
@@ -43,7 +43,7 @@ bool Sigmodr::RootModel::setData(const QVariant& /*value*/, int /*role = Qt::Edi
void Sigmodr::RootModel::addSigmod(Sigmod::Sigmod* sigmod)
{
- m_objects.append(new SigmodModel(this, sigmod));
+ addChild(new SigmodModel(this, sigmod));
}
void Sigmodr::RootModel::deleteSigmod(const Sigmod::Sigmod* sigmod)
@@ -54,6 +54,7 @@ void Sigmodr::RootModel::deleteSigmod(const Sigmod::Sigmod* sigmod)
{
delete m_objects[i];
m_objects.removeAt(i);
+ emit(childRowChanged(i));
break;
}
}
@@ -63,6 +64,6 @@ void Sigmodr::RootModel::addObject(Sigmod::Object* /*object*/)
{
}
-void Sigmodr::RootModel::deleteObject(BaseObjectModel* /*model*/)
+void Sigmodr::RootModel::deleteObject(BaseModel* /*model*/)
{
}