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 committed 2017-05-13 14:06:32 -07:00
1 parent bd34dce8b6
commit 522f5cdf3b
12 files changed
+53 -53

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
#include <string>
#include <algorithm>
#include <QMessageBox>
#include "qt-wrappers.hpp"
#include "audio-encoders.hpp"
#include "window-basic-main.hpp"
#include "window-basic-main-outputs.hpp"
@@ -778,7 +779,7 @@ bool SimpleOutput::ConfigureRecording(bool updateReplayBuffer)
if (!dir) {
if (main->isVisible())
QMessageBox::information(main,
OBSMessageBox::information(main,
QTStr("Output.BadPath.Title"),
QTStr("Output.BadPath.Text"));
else
@@ -1398,7 +1399,7 @@ bool AdvancedOutput::StartRecording()
if (!dir) {
if (main->isVisible())
QMessageBox::information(main,
OBSMessageBox::information(main,
QTStr("Output.BadPath.Title"),
QTStr("Output.BadPath.Text"));
else