forked from osmocom/wireshark
Make sure we can apply deprecated display filters.
Deprecated filters are still valid. Update display filter checks to make sure we can apply them. Bug: 11438 Change-Id: Ib5e009c070b40912434e0ffd771203ed1e1ba093 Reviewed-on: https://code.wireshark.org/review/10154 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
parent
829c64864c
commit
37a737f6d1
|
@ -309,7 +309,7 @@ bool DisplayFilterEdit::checkFilter()
|
|||
{
|
||||
checkFilter(text());
|
||||
|
||||
return (syntaxState() == Valid || syntaxState() == Empty);
|
||||
return syntaxState() != Invalid;
|
||||
}
|
||||
|
||||
void DisplayFilterEdit::checkFilter(const QString& text)
|
||||
|
@ -348,7 +348,7 @@ void DisplayFilterEdit::checkFilter(const QString& text)
|
|||
bookmark_button_->setEnabled(syntaxState() == Valid || syntaxState() == Deprecated);
|
||||
}
|
||||
if (apply_button_) {
|
||||
apply_button_->setEnabled(SyntaxState() != Invalid);
|
||||
apply_button_->setEnabled(syntaxState() != Invalid);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -457,7 +457,7 @@ void DisplayFilterEdit::clearFilter()
|
|||
|
||||
void DisplayFilterEdit::applyDisplayFilter()
|
||||
{
|
||||
if (syntaxState() != Valid && syntaxState() != Empty) {
|
||||
if (syntaxState() == Invalid) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue