Qt: allow Resolved Addresses search filter to be cleared
Allow the filter in the Resolved Address dialog to be cleared to disable filtering without requiring the dialog to be reopened. Change-Id: I8164d42ac763f8b7faf23821633e129feba69790 Fixes: v3.1.1rc0-244-g743f8598cd0b ("Qt: Rework Resolved Addresses dialog") Reviewed-on: https://code.wireshark.org/review/36027 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
f5f435305b
commit
995672e8b6
|
@ -131,10 +131,11 @@ void ResolvedAddressesDialog::on_cmbDataType_currentIndexChanged(QString)
|
|||
|
||||
void ResolvedAddressesDialog::on_txtSearchFilter_textChanged(QString)
|
||||
{
|
||||
if (! ethSortModel || ui->txtSearchFilter->text().length() < 3)
|
||||
QString filter = ui->txtSearchFilter->text();
|
||||
if (!ethSortModel || (!filter.isEmpty() && filter.length() < 3))
|
||||
return;
|
||||
|
||||
ethSortModel->setFilter(ui->txtSearchFilter->text());
|
||||
ethSortModel->setFilter(filter);
|
||||
}
|
||||
|
||||
void ResolvedAddressesDialog::on_cmbPortFilterType_currentIndexChanged(QString)
|
||||
|
|
Loading…
Reference in New Issue