qt: fix default action in Time Shift dialog
authorPeter Wu <peter@lekensteyn.nl>
Mon, 12 Sep 2016 19:30:26 +0000 (21:30 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 13 Sep 2016 09:17:19 +0000 (09:17 +0000)
Use "Apply" as default action, not "Open Help".

Change-Id: Ida9b878732e444bbc450f8e63cc8e30a76f29bdc
Reviewed-on: https://code.wireshark.org/review/17672
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
ui/qt/time_shift_dialog.cpp

index 4b168d1c270a154da4625eb3a21d0504061a640d..b5f87ec4e37d3fcde7cd220cba5d29caab3a32cf 100644 (file)
@@ -37,6 +37,7 @@ TimeShiftDialog::TimeShiftDialog(QWidget *parent, capture_file *cf) :
     ts_ui_->setupUi(this);
     setWindowTitle(wsApp->windowTitleString(tr("Time Shift")));
     apply_button_ = ts_ui_->buttonBox->button(QDialogButtonBox::Apply);
+    apply_button_->setDefault(true);
     connect(apply_button_, SIGNAL(clicked()), this, SLOT(applyTimeShift()));
 
     QStyleOption style_opt;