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
@@ -364,7 +364,7 @@ void OBSBasic::AddTransition()
if (accepted) {
if (name.empty()) {
QMessageBox::information(this,
OBSMessageBox::information(this,
QTStr("NoNameEntered.Title"),
QTStr("NoNameEntered.Text"));
AddTransition();
@@ -373,7 +373,7 @@ void OBSBasic::AddTransition()
source = FindTransition(name.c_str());
if (source) {
QMessageBox::information(this,
OBSMessageBox::information(this,
QTStr("NameExists.Title"),
QTStr("NameExists.Text"));
@@ -464,7 +464,7 @@ void OBSBasic::RenameTransition()
if (accepted) {
if (name.empty()) {
QMessageBox::information(this,
OBSMessageBox::information(this,
QTStr("NoNameEntered.Title"),
QTStr("NoNameEntered.Text"));
RenameTransition();
@@ -473,7 +473,7 @@ void OBSBasic::RenameTransition()
source = FindTransition(name.c_str());
if (source) {
QMessageBox::information(this,
OBSMessageBox::information(this,
QTStr("NameExists.Title"),
QTStr("NameExists.Text"));