Fix minor gui wrong behavior

This commit is contained in:
joshua
2023-03-10 20:19:12 +01:00
parent 470e4a059b
commit 45b8cb34f3
2 changed files with 2 additions and 1 deletions

View File

@@ -180,6 +180,7 @@ void TerminalStripEditor::reload()
if (m_model)
{
m_model->reload();
spanMultiLevelTerminals();
}
}

View File

@@ -186,7 +186,7 @@ QVariant TerminalStripModel::data(const QModelIndex &index, int role) const
{
return mrtd.led_ ? Qt::Checked : Qt::Unchecked;
}
else if (role == Qt::BackgroundRole && index.column() <= CONDUCTOR_CELL )
else if (role == Qt::BackgroundRole && index.column() < COLUMN_COUNT )
{
if (m_modified_cell.contains(mrtd.element_) &&
m_modified_cell.value(mrtd.element_).at(index.column()))