aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/protocol_preferences_menu.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-06-19 10:30:35 -0400
committerStig Bjørlykke <stig@bjorlykke.org>2017-06-19 16:33:17 +0000
commit583c2504671e1671afd03e7638cf6c2957d2b020 (patch)
treefadc44254f7ed3eb4ce7caf9aae42f34ddc2408c /ui/qt/protocol_preferences_menu.cpp
parentd83176ed2edffe59badd75d8ee98c77227fd357f (diff)
Qt: Flush signals when disable protocols
When opening the enabled protocols dialog from a protocol preferences menu we must flush app signals to ensure a redissect is done. Change-Id: I512b8f6959aabcc15ccffc67615583ee9c60ceec Reviewed-on: https://code.wireshark.org/review/22224 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/protocol_preferences_menu.cpp')
-rw-r--r--ui/qt/protocol_preferences_menu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/protocol_preferences_menu.cpp b/ui/qt/protocol_preferences_menu.cpp
index 96543c586d..cd708bbcf9 100644
--- a/ui/qt/protocol_preferences_menu.cpp
+++ b/ui/qt/protocol_preferences_menu.cpp
@@ -260,6 +260,10 @@ void ProtocolPreferencesMenu::disableProtocolTriggered()
enable_proto_dialog.selectProtocol(protocol_);
hide();
enable_proto_dialog.exec();
+
+ // Emitting PacketDissectionChanged directly from a QDialog can cause
+ // problems on macOS.
+ wsApp->flushAppSignals();
}
void ProtocolPreferencesMenu::modulePreferencesTriggered()