From 53a32f7fc64fa3e81d7d7eeed11dfb9a36919657 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 15 Mar 2017 16:49:07 +0100 Subject: [PATCH] ScxmlEditor: Don't generate invalid state names '(' and ')' should be avoided when copy/pasting states. Change-Id: Ic54528ed51b2f4596651bb1d23f282e70210f3a7 Reviewed-by: Marco Benelli --- src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp b/src/plugins/scxmleditor/plugin_interface/scxmldocument.cpp index 15dea2d2e1f..ed4ce3e507a 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++; }