mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-01 21:07:12 -05:00
UI: Make sure "Defaults" buttons aren't default buttons
This commit is contained in:
@@ -49,11 +49,14 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
|
||||
int cy = (int)config_get_int(App()->GlobalConfig(), "PropertiesWindow",
|
||||
"cy");
|
||||
|
||||
buttonBox->addButton(QTStr("OK"), QDialogButtonBox::AcceptRole);
|
||||
QPushButton *b;
|
||||
b = buttonBox->addButton(QTStr("OK"), QDialogButtonBox::AcceptRole);
|
||||
buttonBox->addButton(QTStr("Cancel"), QDialogButtonBox::RejectRole);
|
||||
buttonBox->addButton(QTStr("Defaults"), QDialogButtonBox::ResetRole);
|
||||
buttonBox->setObjectName(QStringLiteral("buttonBox"));
|
||||
|
||||
b->setDefault(true);
|
||||
|
||||
if (cx > 400 && cy > 400)
|
||||
resize(cx, cy);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user