mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 00:30:53 +01:00
Element editor bug fix : Unable to clear an information of the edited element (label, manufacturer etc...).
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5625 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -180,9 +180,9 @@ void ElementPropertiesEditorWidget::on_m_buttonBox_accepted()
|
|||||||
m_kind_info.addValue("type", ui -> m_master_type_cb -> itemData(ui -> m_master_type_cb -> currentIndex()));
|
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())
|
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));
|
||||||
m_elmt_info.addValue(qtwi->data(0, Qt::UserRole).toString(), qtwi->text(1));
|
}
|
||||||
|
|
||||||
this->close();
|
this->close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user