forked from osmocom/wireshark
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>
This commit is contained in:
parent
2d8ec49ffa
commit
4876016bda
|
@ -137,6 +137,7 @@ void ColumnPreferencesFrame::keyPressEvent(QKeyEvent *evt)
|
|||
case Qt::Key_Escape:
|
||||
cur_line_edit_->setText(saved_col_string_);
|
||||
new_idx = saved_combo_idx_;
|
||||
/* Fall Through */
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Return:
|
||||
switch (cur_column_) {
|
||||
|
@ -164,6 +165,7 @@ void ColumnPreferencesFrame::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
|
||||
|
|
|
@ -130,6 +130,7 @@ void FilterExpressionsPreferencesFrame::keyPressEvent(QKeyEvent *evt)
|
|||
switch (evt->key()) {
|
||||
case Qt::Key_Escape:
|
||||
cur_line_edit_->setText(saved_col_string_);
|
||||
/* Fall Through */
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Return:
|
||||
switch (cur_column_) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -125,6 +125,7 @@ void UatDialog::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:
|
||||
stringPrefEditingFinished();
|
||||
|
@ -136,6 +137,7 @@ void UatDialog::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
|
||||
|
|
Loading…
Reference in New Issue