1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 12:31:45 +01:00

Change default selection button to select entry instead of cancel.

This commit is contained in:
Robbie 2017-07-03 11:55:02 -05:00 committed by Ivan
parent 458968658f
commit fd1ca2f102

View File

@ -85,7 +85,11 @@ save_data_list_dialog::save_data_list_dialog(const std::vector<SaveDataEntry>& e
// Button Layout
QHBoxLayout* hbox_action = new QHBoxLayout();
QPushButton *push_cancel = new QPushButton(tr("&Cancel"), this);
push_cancel->setAutoDefault(false);
QPushButton *push_select = new QPushButton(tr("&Select Entry"), this);
push_select->setAutoDefault(true);
push_select->setDefault(true);
connect(push_select, &QAbstractButton::clicked, this, &save_data_list_dialog::accept);
hbox_action->addWidget(push_select);
setWindowTitle(tr("Save Data Chooser"));