summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-21 17:36:22 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-21 17:36:22 -0400
commit64bfc8d3a147a66b07e7d4e190ff92836b011998 (patch)
tree70c32c3965d84dbf107e9ed6bd8d68ad2d66e5e1
parent61ad66f8eb39f2cb1d6cd2bbf443306ef58dd611 (diff)
downloadsigen-64bfc8d3a147a66b07e7d4e190ff92836b011998.tar.gz
sigen-64bfc8d3a147a66b07e7d4e190ff92836b011998.tar.xz
sigen-64bfc8d3a147a66b07e7d4e190ff92836b011998.zip
When the widget is saved, refresh the data in the tree
-rw-r--r--sigmodr/SigmodrUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp
index 5e0b235f..aad5d75b 100644
--- a/sigmodr/SigmodrUI.cpp
+++ b/sigmodr/SigmodrUI.cpp
@@ -486,6 +486,8 @@ void SigmodrUI::on_treeSigmod_clicked(const QModelIndex& index)
{
connect(editor, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
connect(editor, SIGNAL(saved()), this, SLOT(setDirty()));
+ // TODO: Better way?
+ connect(editor, SIGNAL(saved()), treeSigmod, SLOT(doItemsLayout()));
connect(buttonApply, SIGNAL(clicked()), editor, SLOT(apply()));
connect(buttonReset, SIGNAL(clicked()), editor, SLOT(discard()));
m_editedIndex = index;