Qt: Use assume messages/confirmations from core are UTF-8

This commit is contained in:
Connor McLaughlin 2020-09-15 00:36:43 +10:00
parent 198b83676c
commit 8d5a6acfc7

View file

@ -144,7 +144,7 @@ void QtHostInterface::ReportError(const char* message)
if (was_fullscreen)
SetFullscreen(false);
emit errorReported(QString::fromLocal8Bit(message));
emit errorReported(QString::fromUtf8(message));
if (was_fullscreen)
SetFullscreen(true);
@ -154,7 +154,7 @@ void QtHostInterface::ReportMessage(const char* message)
{
HostInterface::ReportMessage(message);
emit messageReported(QString::fromLocal8Bit(message));
emit messageReported(QString::fromUtf8(message));
}
bool QtHostInterface::ConfirmMessage(const char* message)
@ -163,7 +163,7 @@ bool QtHostInterface::ConfirmMessage(const char* message)
if (was_fullscreen)
SetFullscreen(false);
const bool result = messageConfirmed(QString::fromLocal8Bit(message));
const bool result = messageConfirmed(QString::fromUtf8(message));
if (was_fullscreen)
SetFullscreen(true);