UI: Make sure all message box buttons are translated

Instead of QMessageBox::question and QMessageBox::information, use the
OBSMessageBox class, which translates all buttons.
This commit is contained in:
jp9000
2017-05-13 14:06:32 -07:00
parent bd34dce8b6
commit 522f5cdf3b
12 changed files with 53 additions and 53 deletions
+4 -4
View File
@@ -365,7 +365,7 @@ void OBSBasicFilters::AddNewFilter(const char *id)
return;
if (name.empty()) {
QMessageBox::information(this,
OBSMessageBox::information(this,
QTStr("NoNameEntered.Title"),
QTStr("NoNameEntered.Text"));
AddNewFilter(id);
@@ -375,7 +375,7 @@ void OBSBasicFilters::AddNewFilter(const char *id)
existing_filter = obs_source_get_filter_by_name(source,
name.c_str());
if (existing_filter) {
QMessageBox::information(this,
OBSMessageBox::information(this,
QTStr("NameExists.Title"),
QTStr("NameExists.Text"));
obs_source_release(existing_filter);
@@ -678,13 +678,13 @@ void OBSBasicFilters::FilterNameEdited(QWidget *editor, QListWidget *list)
listItem->setText(QT_UTF8(prevName));
if (foundFilter) {
QMessageBox::information(window(),
OBSMessageBox::information(window(),
QTStr("NameExists.Title"),
QTStr("NameExists.Text"));
obs_source_release(foundFilter);
} else if (name.empty()) {
QMessageBox::information(window(),
OBSMessageBox::information(window(),
QTStr("NoNameEntered.Title"),
QTStr("NoNameEntered.Text"));
}