diff options
author | Gerald Combs <gerald@zing.org> | 2015-10-03 09:45:16 -0700 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-10-05 02:58:28 +0000 |
commit | 2496aed28eecc3466f8de49f67393b0798c664fb (patch) | |
tree | 7b805c2df25b8e78a2c5dc9d35665398b5ccda40 /ui/qt/wireshark_application.h | |
parent | 05e037565902fd3043f3f475da0c7b5265d09425 (diff) | |
download | wireshark-2496aed28eecc3466f8de49f67393b0798c664fb.tar.gz |
Qt: Don't update the recent list while capturing.
If a recent file is on a network share we'll create traffic which can
show up in the capture.
This doesn't fix the issue entirely, e.g. if you're capturing in one
instance of Wireshark and have another one open. The proper fix in that
case is to switch to QFileSystemWatcher as described at the top of
::WiresharkApplication.
Ping-Bug: 11546
Change-Id: If21f1bb213fe1d862c09b1b2edd78c8baf983461
Reviewed-on: https://code.wireshark.org/review/10774
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index 807fb84a80..dc1ba99f40 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -129,6 +129,7 @@ private: QIcon capture_icon_; static QString window_title_separator_; QList<AppSignal> app_signals_; + int active_captures_; protected: bool event(QEvent *event); @@ -156,6 +157,8 @@ signals: public slots: void clearRecentItems(); void captureFileReadStarted(); + void captureStarted() { active_captures_++; } + void captureFinished() { active_captures_--; } void updateTaps(); private slots: |