|
@@ -49,11 +49,14 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
|
|
|
int cy = (int)config_get_int(App()->GlobalConfig(), "PropertiesWindow",
|
|
int cy = (int)config_get_int(App()->GlobalConfig(), "PropertiesWindow",
|
|
|
"cy");
|
|
"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("Cancel"), QDialogButtonBox::RejectRole);
|
|
|
buttonBox->addButton(QTStr("Defaults"), QDialogButtonBox::ResetRole);
|
|
buttonBox->addButton(QTStr("Defaults"), QDialogButtonBox::ResetRole);
|
|
|
buttonBox->setObjectName(QStringLiteral("buttonBox"));
|
|
buttonBox->setObjectName(QStringLiteral("buttonBox"));
|
|
|
|
|
|
|
|
|
|
+ b->setDefault(true);
|
|
|
|
|
+
|
|
|
if (cx > 400 && cy > 400)
|
|
if (cx > 400 && cy > 400)
|
|
|
resize(cx, cy);
|
|
resize(cx, cy);
|
|
|
else
|
|
else
|