aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/preferences_dialog.cpp
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-12-22 20:54:10 +0100
committerAnders Broman <a.broman58@gmail.com>2014-12-24 17:02:05 +0000
commit4876016bda0e0078d15d3e26df220a782c95376f (patch)
treec2c6965a16f56d706cd0134723944be3829d0772 /ui/qt/preferences_dialog.cpp
parent2d8ec49ffad14a1f1ea7a71c99e617bbfd0767a9 (diff)
Qt (KeyPressEvent): Missing break in switch (CID 1159205, 1159206, 1159208, 1159209)
Change-Id: I40b7c7eefb269570e6a1c5c9ec310fa97840d42d Reviewed-on: https://code.wireshark.org/review/5995 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/preferences_dialog.cpp')
-rw-r--r--ui/qt/preferences_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/preferences_dialog.cpp b/ui/qt/preferences_dialog.cpp
index 4702c664f1..486e627dd3 100644
--- a/ui/qt/preferences_dialog.cpp
+++ b/ui/qt/preferences_dialog.cpp
@@ -362,6 +362,7 @@ void PreferencesDialog::keyPressEvent(QKeyEvent *evt)
switch (evt->key()) {
case Qt::Key_Escape:
cur_line_edit_->setText(saved_string_pref_);
+ /* Fall Through */
case Qt::Key_Enter:
case Qt::Key_Return:
switch (cur_pref_type_) {
@@ -387,6 +388,7 @@ void PreferencesDialog::keyPressEvent(QKeyEvent *evt)
switch (evt->key()) {
case Qt::Key_Escape:
cur_combo_box_->setCurrentIndex(saved_combo_idx_);
+ /* Fall Through */
case Qt::Key_Enter:
case Qt::Key_Return:
// XXX The combo box eats enter and return