aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-03-15 16:49:07 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-03-15 16:51:18 +0000
commit53a32f7fc64fa3e81d7d7eeed11dfb9a36919657 (patch)
tree751c6b2c26b6e51c14aa378c5fdeb6a1d16ed8ea /src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
parent7236f2124a2d9c97fee8ddca1dc8e3db2996c48a (diff)
ScxmlEditor: Don't generate invalid state names
'(' and ')' should be avoided when copy/pasting states. Change-Id: Ic54528ed51b2f4596651bb1d23f282e70210f3a7 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp')
-rw-r--r--src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
index 15dea2d2e1..ed4ce3e507 100644
--- a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
+++ b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp
@@ -625,7 +625,7 @@ QString ScxmlDocument::getUniqueCopyId(const ScxmlTag *tag)
// Check duplicate
foreach (const ScxmlTag *t, m_tags) {
if (t->attribute("id") == name && t != tag) {
- name = QString::fromLatin1("%1_Copy(%2)").arg(key).arg(counter);
+ name = QString::fromLatin1("%1_Copy%2").arg(key).arg(counter);
bFound = true;
counter++;
}