mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Change default selection button to select entry instead of cancel.
This commit is contained in:
parent
458968658f
commit
fd1ca2f102
1 changed files with 4 additions and 0 deletions
|
@ -85,7 +85,11 @@ save_data_list_dialog::save_data_list_dialog(const std::vector<SaveDataEntry>& e
|
||||||
// Button Layout
|
// Button Layout
|
||||||
QHBoxLayout* hbox_action = new QHBoxLayout();
|
QHBoxLayout* hbox_action = new QHBoxLayout();
|
||||||
QPushButton *push_cancel = new QPushButton(tr("&Cancel"), this);
|
QPushButton *push_cancel = new QPushButton(tr("&Cancel"), this);
|
||||||
|
push_cancel->setAutoDefault(false);
|
||||||
QPushButton *push_select = new QPushButton(tr("&Select Entry"), this);
|
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);
|
connect(push_select, &QAbstractButton::clicked, this, &save_data_list_dialog::accept);
|
||||||
hbox_action->addWidget(push_select);
|
hbox_action->addWidget(push_select);
|
||||||
setWindowTitle(tr("Save Data Chooser"));
|
setWindowTitle(tr("Save Data Chooser"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue