[education/rkward] rkward/windows: Fix compilation on MacOS

Thomas Friedrichsmeier null at kde.org
Sat Apr 26 19:43:47 BST 2025


Git commit 62758dcb7579e7331dcef168e4551474a9acb4eb by Thomas Friedrichsmeier.
Committed on 26/04/2025 at 18:43.
Pushed by tfry into branch 'master'.

Fix compilation on MacOS

M  +1    -1    rkward/windows/rkwindowcatcher.cpp

https://invent.kde.org/education/rkward/-/commit/62758dcb7579e7331dcef168e4551474a9acb4eb

diff --git a/rkward/windows/rkwindowcatcher.cpp b/rkward/windows/rkwindowcatcher.cpp
index acbffe895..d279ae449 100644
--- a/rkward/windows/rkwindowcatcher.cpp
+++ b/rkward/windows/rkwindowcatcher.cpp
@@ -130,7 +130,7 @@ void RKWindowCatcher::stop (int new_cur_device) {
 #endif
 		} else {
 #if defined Q_OS_MACOS
-			KMessageBox::information(nullptr, i18n("You have tried to embed a new R graphics device window in RKWard. However, this is not currently supported in this build of RKWard on Mac OS X. See https://rkward.kde.org/mac for more information."), i18n("Could not embed R X11 window"), "embed_x11_device_not_supported");
+			KMessageBox::information(nullptr, i18n("You have tried to embed a new R graphics device window in RKWard. However, this is not currently supported in this build of RKWard on Mac OS X. See https://rkward.kde.org/mac for more information."), i18n("Could not embed R X11 window"), u"embed_x11_device_not_supported"_s);
 #else
 			RKErrorDialog::reportableErrorMessage (nullptr, i18n ("You have tried to embed a new R graphics device window in RKWard. However, either no window was created, or RKWard failed to detect the new window. If you think RKWard should have done better, consider reporting this as a bug. Alternatively, you may want to adjust Settings->Configure RKWard->Onscreen Graphics."), QString (), i18n ("Could not embed R X11 window"), QStringLiteral("failure_to_detect_x11_device"));
 #endif


More information about the rkward-tracker mailing list