提交 cc5884c1 编写于 作者: J Jkoan

Fix Remove Dialog

Remove failed test and add other Messagebox to correct Text with Language support

Add Title again -,-
上级 83fe23e1
......@@ -841,11 +841,15 @@ bool OBSBasic::QueryRemoveSource(obs_source_t source)
QString text = QTStr("ConfirmRemove.Text");
text.replace("$1", QT_UTF8(name));
QMessageBox::StandardButton button;
button = QMessageBox::question(this,
QTStr("ConfirmRemove.Remove"), text);
return button == QMessageBox::Yes;
QMessageBox remove_source;
remove_source.setInformativeText(text);
QAbstractButton *Yes = remove_source.addButton(QTStr("Yes"), QMessageBox::YesRole);
remove_source.addButton(QTStr("No"), QMessageBox::NoRole);
remove_source.setIcon(QMessageBox::Question);
remove_source.setWindowTitle(QTStr("ConfirmRemove.Title"));
remove_source.exec();
return Yes == remove_source.clickedButton();
}
#define UPDATE_CHECK_INTERVAL (60*60*24*4) /* 4 days */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册