bug fix: At project opening, simple element don't displayed the good text, but '_'

if the text wasn't write in the element propertie dialog (only affect the text field tagged 'label')


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3460 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-11-06 21:08:45 +00:00
parent 492a0881c7
commit a7192fcda6
2 changed files with 2 additions and 5 deletions

View File

@@ -55,9 +55,7 @@ void SimpleElement::updateLabel() {
bool show = elementInformations().keyMustShow("label");
// setup the label
(label.isEmpty() || !show)?
setTaggedText("label", "_", false):
setTaggedText("label", label, true);
if (!label.isEmpty() && show) setTaggedText("label", label, true);
//Comment of element
QString comment = elementInformations()["comment"].toString();