Commit edcfe082 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.propertyEditor: bugfix for invalid ids

parent 49d0c90f
......@@ -373,6 +373,7 @@ void PropertyEditor::changeValue(const QString &propertyName)
try {
m_selectedNode.setId(newId);
} catch (InvalidIdException &e) { //better save then sorry
value->setValue(m_selectedNode.id());
QMessageBox::warning(0, tr("Invalid Id"), e.description());
}
} else { //there is already an id, so we refactor
......
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