Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
edcfe082
Commit
edcfe082
authored
Mar 18, 2011
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: bugfix for invalid ids
parent
49d0c90f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
View file @
edcfe082
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment