diff --git a/sources/editor/ui/elementpropertieseditorwidget.cpp b/sources/editor/ui/elementpropertieseditorwidget.cpp index 6680b9152..7a24f984f 100644 --- a/sources/editor/ui/elementpropertieseditorwidget.cpp +++ b/sources/editor/ui/elementpropertieseditorwidget.cpp @@ -17,6 +17,7 @@ */ #include "elementpropertieseditorwidget.h" +#include "../../qet.h" #include "../../qetapp.h" #include "../../qetinformation.h" #include "ui_elementpropertieseditorwidget.h" @@ -185,13 +186,13 @@ void ElementPropertiesEditorWidget::upDateInterface() const DiagramContext &info = m_data.m_informations; ui->m_auto_num_locked_cb->setChecked( - info.value(QStringLiteral("auto_num_locked")).toString() == QLatin1String("true")); + QET::infoFlagIsTrue(info.value(QStringLiteral("auto_num_locked")).toString())); ui->m_potential_isolating_cb->setChecked( - info.value(QStringLiteral("potential_isolating")).toString() == QLatin1String("true")); + QET::infoFlagIsTrue(info.value(QStringLiteral("potential_isolating")).toString())); } ui->m_exclude_from_bom_cb->setChecked( - m_data.m_informations.value(QStringLiteral("exclude_from_bom")).toString() == QLatin1String("true")); + QET::infoFlagIsTrue(m_data.m_informations.value(QStringLiteral("exclude_from_bom")).toString())); on_m_base_type_cb_currentIndexChanged(ui->m_base_type_cb->currentIndex()); } diff --git a/sources/ui/elementinfowidget.cpp b/sources/ui/elementinfowidget.cpp index f67f2bd85..61bc49651 100644 --- a/sources/ui/elementinfowidget.cpp +++ b/sources/ui/elementinfowidget.cpp @@ -378,7 +378,7 @@ void ElementInfoWidget::updateUi() // English: Load the BOM exclusion status from the element information mapping if (m_exclude_from_bom_cb) { QString exclude_bom_value = element_info.value(QStringLiteral("exclude_from_bom")).toString(); - m_exclude_from_bom_cb->setChecked(exclude_bom_value == QLatin1String("true")); + m_exclude_from_bom_cb->setChecked(QET::infoFlagIsTrue(exclude_bom_value)); } if (m_live_edit) {