Qt: Accept changes in Decode As when combo box has focus

Accept changes in the Decode As dialog on Save and Ok even when the
Field or Current combox box still has focus.

Change-Id: I9d6277ff57714679b574756cbc6d4c4dcb06f8e2
Reviewed-on: https://code.wireshark.org/review/37580
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2020-06-29 10:16:41 +02:00
parent 09777ecc04
commit 52512329c2
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,8 @@ void DecodeAsDialog::applyChanges()
void DecodeAsDialog::on_buttonBox_clicked(QAbstractButton *button)
{
ui->buttonBox->setFocus();
switch (ui->buttonBox->standardButton(button)) {
case QDialogButtonBox::Ok:
applyChanges();