diff options
Diffstat (limited to 'ui/qt/enabled_protocols_dialog.cpp')
-rw-r--r-- | ui/qt/enabled_protocols_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/enabled_protocols_dialog.cpp b/ui/qt/enabled_protocols_dialog.cpp index 7cb7b85223..5eb9abbc84 100644 --- a/ui/qt/enabled_protocols_dialog.cpp +++ b/ui/qt/enabled_protocols_dialog.cpp @@ -87,10 +87,10 @@ void EnabledProtocolsDialog::searchFilterChange() EnabledProtocolItem::EnableProtocolType protocol = EnabledProtocolItem::Any; QString search_re = ui->search_line_edit_->text(); - if ( ui->cmbSearchType->currentData().canConvert<EnabledProtocolsProxyModel::SearchType>() ) + if (ui->cmbSearchType->currentData().canConvert<EnabledProtocolsProxyModel::SearchType>()) type = ui->cmbSearchType->currentData().value<EnabledProtocolsProxyModel::SearchType>(); - if ( ui->cmbProtocolType->currentData().canConvert<EnabledProtocolItem::EnableProtocolType>() ) + if (ui->cmbProtocolType->currentData().canConvert<EnabledProtocolItem::EnableProtocolType>()) protocol = ui->cmbProtocolType->currentData().value<EnabledProtocolItem::EnableProtocolType>(); proxyModel_->setFilter(search_re, type, protocol); |