mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-07 16:20:04 -04:00
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:
@@ -154,7 +154,7 @@ bool AddNew(QWidget *parent, const char *id, const char *name,
|
||||
|
||||
obs_source_t *source = obs_get_source_by_name(name);
|
||||
if (source) {
|
||||
QMessageBox::information(parent,
|
||||
OBSMessageBox::information(parent,
|
||||
QTStr("NameExists.Title"),
|
||||
QTStr("NameExists.Text"));
|
||||
|
||||
@@ -190,7 +190,7 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
|
||||
AddExisting(QT_TO_UTF8(item->text()), visible, false);
|
||||
} else {
|
||||
if (ui->sourceName->text().isEmpty()) {
|
||||
QMessageBox::information(this,
|
||||
OBSMessageBox::information(this,
|
||||
QTStr("NoNameEntered.Title"),
|
||||
QTStr("NoNameEntered.Text"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user