diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-11-25 12:51:35 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-11-25 15:20:54 +0000 |
commit | a17866f1fd1317b05265622b0f24f0e551a9da67 (patch) | |
tree | 091ae958806b41b34201ea2421c8677157cc8726 | |
parent | d93918f2b856b8048eb3a402c893529f155c57fa (diff) | |
download | wireshark-a17866f1fd1317b05265622b0f24f0e551a9da67.tar.gz |
Press Start instead of Manage Interfaces on Enter
In the Capture Interfaces dialog, the default dialog action was
non-existing. Fix Extcap while at it (searched for "YesRole").
Reported on #wireshark at Freenode.
Change-Id: I7920b806a855acc20dcd2081f6b0d58e993b4ac1
Reviewed-on: https://code.wireshark.org/review/12136
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
(cherry picked from commit dde848b3d925d040592bd3f86487e9bc86905550)
Reviewed-on: https://code.wireshark.org/review/12140
-rw-r--r-- | ui/qt/capture_interfaces_dialog.cpp | 2 | ||||
-rw-r--r-- | ui/qt/extcap_options_dialog.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/capture_interfaces_dialog.cpp b/ui/qt/capture_interfaces_dialog.cpp index 71a587e9fd..7f139890e6 100644 --- a/ui/qt/capture_interfaces_dialog.cpp +++ b/ui/qt/capture_interfaces_dialog.cpp @@ -120,7 +120,7 @@ CaptureInterfacesDialog::CaptureInterfacesDialog(QWidget *parent) : stat_cache_ = NULL; // XXX - Enable / disable as needed - start_bt_ = ui->buttonBox->addButton(tr("Start"), QDialogButtonBox::YesRole); + start_bt_ = ui->buttonBox->addButton(tr("Start"), QDialogButtonBox::AcceptRole); start_bt_->setEnabled((global_capture_opts.num_selected > 0)? true: false); connect(start_bt_, SIGNAL(clicked(bool)), this, SLOT(start_button_clicked())); diff --git a/ui/qt/extcap_options_dialog.cpp b/ui/qt/extcap_options_dialog.cpp index 91b010dee4..d83a4d892e 100644 --- a/ui/qt/extcap_options_dialog.cpp +++ b/ui/qt/extcap_options_dialog.cpp @@ -67,7 +67,7 @@ ExtcapOptionsDialog::ExtcapOptionsDialog(QWidget *parent) : device_idx = 0; - start_bt_ = ui->buttonBox->addButton(tr("Start"), QDialogButtonBox::YesRole); + start_bt_ = ui->buttonBox->addButton(tr("Start"), QDialogButtonBox::AcceptRole); start_bt_->setEnabled((global_capture_opts.num_selected > 0)? true: false); connect(start_bt_, SIGNAL(clicked(bool)), this, SLOT(start_button_clicked())); |