summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar liamwhite2023-07-03 13:23:44 -0400
committerGravatar GitHub2023-07-03 13:23:44 -0400
commit005f0eb0839b77519b3dff2a1da679daeba15b68 (patch)
tree87d4234b0704fb6539e3febb3c06ad8554c64b80 /src
parentMerge pull request #10998 from Morph1984/qt-stop-messing-with-me (diff)
parentUse `toUtf8()` for string passed to DBus (diff)
downloadyuzu-005f0eb0839b77519b3dff2a1da679daeba15b68.tar.gz
yuzu-005f0eb0839b77519b3dff2a1da679daeba15b68.tar.xz
yuzu-005f0eb0839b77519b3dff2a1da679daeba15b68.zip
Merge pull request #11007 from zeltermann/dbus-obey-utf8
Use `toUtf8()` for string passed to DBus
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index fea5eb614..20532416c 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -454,7 +454,7 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
454 // the user through their desktop environment. 454 // the user through their desktop environment.
455 //: TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the 455 //: TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the
456 //: computer from sleeping 456 //: computer from sleeping
457 QByteArray wakelock_reason = tr("Running a game").toLatin1(); 457 QByteArray wakelock_reason = tr("Running a game").toUtf8();
458 SDL_SetHint(SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME, wakelock_reason.data()); 458 SDL_SetHint(SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME, wakelock_reason.data());
459 459
460 // SDL disables the screen saver by default, and setting the hint 460 // SDL disables the screen saver by default, and setting the hint