forked from osmocom/wireshark
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:
parent
82dcb50bbc
commit
c199b747aa
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue