Skip to content

Commit

Permalink
Add check for groupData
Browse files Browse the repository at this point in the history
Signed-off-by: shadichy <[email protected]>
  • Loading branch information
shadichy committed Jan 9, 2025
1 parent 37137d4 commit b3cbf4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/modules/options/OptionModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ OptionModel::setupModelData( const QVariantList& groupList, OptionTreeItem* pare
{
cWarning() << "*options* under" << item->name() << "is empty.";
}
else
{
item->updateSelected();
}
}
if ( groupMap.contains( "subgroups" ) )
{
Expand Down
4 changes: 0 additions & 4 deletions src/modules/options/OptionTreeItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ OptionTreeItem::OptionTreeItem( const QVariantMap& groupData, OptionTag&& parent
: "" )
, m_showReadOnly( parent.parent ? parent.parent->isImmutable() : false )
{
if ( m_selected == Qt::Checked )
{
this->setSelected( Qt::Checked );
}
}

OptionTreeItem::OptionTreeItem( const QVariantMap& groupData, GroupTag&& parent )
Expand Down

0 comments on commit b3cbf4e

Please sign in to comment.