aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/capture_filter_edit.cpp
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2019-11-12 14:27:38 +0100
committerRoland Knall <rknall@gmail.com>2019-11-12 22:03:23 +0000
commit3c8c392b9d6001bd5fadca887caf69bdf7ec74ad (patch)
tree44d84a2d8842d147c45464f62aac92f5fc393fc3 /ui/qt/widgets/capture_filter_edit.cpp
parentba62446a6a42e3d94f861ad728dec4b09edf620c (diff)
Qt: Cleanup push/pop Infos
Currently push pop is propagated by a massive load of signals which partly are also propagated through parent objects. This moves the status handling to WiresharkApplication, also pathlining future moves to move status to different classes or use additional methods of status information Change-Id: Ibcb2c98688f1adf40dce1483f336596ef992bb06 Reviewed-on: https://code.wireshark.org/review/35071 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/widgets/capture_filter_edit.cpp')
-rw-r--r--ui/qt/widgets/capture_filter_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/widgets/capture_filter_edit.cpp b/ui/qt/widgets/capture_filter_edit.cpp
index 6c8d101f5f..8c17062c55 100644
--- a/ui/qt/widgets/capture_filter_edit.cpp
+++ b/ui/qt/widgets/capture_filter_edit.cpp
@@ -319,7 +319,7 @@ void CaptureFilterEdit::checkFilter(const QString& filter)
actions_->checkedAction()->setChecked(false);
setSyntaxState(Busy);
- popFilterSyntaxStatus();
+ wsApp->popStatus(WiresharkApplication::FilterSyntax);
setToolTip(QString());
bool empty = filter.isEmpty();
@@ -420,7 +420,7 @@ void CaptureFilterEdit::setFilterSyntaxState(QString filter, int state, QString
if (filter.compare(text()) == 0) { // The user hasn't changed the filter
setSyntaxState((SyntaxState)state);
if (!err_msg.isEmpty()) {
- emit pushFilterSyntaxStatus(err_msg);
+ wsApp->pushStatus(WiresharkApplication::FilterSyntax, err_msg);
setToolTip(err_msg);
}
}