Commit 0bc50d79 authored by Bianca Tost's avatar Bianca Tost

fixed ddouble property cuasing segfault when changing suffix or prefix after changing value

parent aa18c528
......@@ -226,6 +226,9 @@ QWidget *QtDecoratedDoubleSpinBoxFactory::createEditor(QtDecoratedDoubleProperty
createdEditors[property].append(spinBox);
editorToProperty[spinBox] = property;
connect(spinBox, SIGNAL(destroyed(QObject *)),
this, SLOT(slotEditorDestroyed(QObject *)));
return spinBox;
}
......@@ -251,7 +254,9 @@ void QtDecoratedDoubleSpinBoxFactory::slotPrefixChanged(QtProperty *property, co
QListIterator<QDoubleSpinBox *> itEditor(editors);
while (itEditor.hasNext()) {
QDoubleSpinBox *editor = itEditor.next();
editor->blockSignals(true);
editor->setPrefix(prefix);
editor->blockSignals(false);
}
}
......@@ -269,7 +274,9 @@ void QtDecoratedDoubleSpinBoxFactory::slotSuffixChanged(QtProperty *property, co
QListIterator<QDoubleSpinBox *> itEditor(editors);
while (itEditor.hasNext()) {
QDoubleSpinBox *editor = itEditor.next();
editor->blockSignals(true);
editor->setSuffix(prefix);
editor->blockSignals(false);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment