[qet] qet/qet: [5625] Element editor bug fix : Unable to clear an information of the edited element (label, manufacturer etc...).

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5625
Author:   blacksun
Date:     2018-12-01 21:12:24 +0100 (Sat, 01 Dec 2018)
Log Message:
-----------
Element editor bug fix : Unable to clear an information of the edited element (label, manufacturer etc...).

Modified Paths:
--------------
    trunk/sources/editor/ui/elementpropertieseditorwidget.cpp

Modified: trunk/sources/editor/ui/elementpropertieseditorwidget.cpp
===================================================================
--- trunk/sources/editor/ui/elementpropertieseditorwidget.cpp	2018-12-01 12:55:05 UTC (rev 5624)
+++ trunk/sources/editor/ui/elementpropertieseditorwidget.cpp	2018-12-01 20:12:24 UTC (rev 5625)
@@ -180,9 +180,9 @@
 		m_kind_info.addValue("type", ui -> m_master_type_cb -> itemData(ui -> m_master_type_cb -> currentIndex()));
 	}
 	
-	for (QTreeWidgetItem *qtwi : ui->m_tree->invisibleRootItem()->takeChildren())
-		if(!qtwi->text(1).isEmpty())
-			m_elmt_info.addValue(qtwi->data(0, Qt::UserRole).toString(), qtwi->text(1));
+	for (QTreeWidgetItem *qtwi : ui->m_tree->invisibleRootItem()->takeChildren()) {
+		m_elmt_info.addValue(qtwi->data(0, Qt::UserRole).toString(), qtwi->text(1));
+	}
 	
 	this->close();
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/