Revert "Qt: only half of enabled/disabled protocols list is processed"

This reverts commit 248955d614.

It speeds up the loop when type_ is EveryWhere (see: enum SearchType)
but a hang or crash for other combinations of type_ and protocolType_.
This commit is contained in:
Chuck Craft 2022-09-20 11:07:13 -05:00
parent 82dcb50bbc
commit c199b747aa
1 changed files with 1 additions and 2 deletions

View File

@ -484,8 +484,7 @@ void EnabledProtocolsProxyModel::setItemsEnable(EnabledProtocolsProxyModel::Enab
if (! parent.isValid())
beginResetModel();
int rowcount = rowCount(parent);
for (int row = 0; row < rowcount; row++)
for (int row = 0; row < rowCount(parent); row++)
{
QModelIndex idx = index(row, EnabledProtocolsModel::colProtocol, parent);