From 1854bbabea2bf2f60a3deb7e7a0f2faa38f50632 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Sun, 18 Aug 2024 10:48:14 +0200 Subject: [PATCH] Fix variable names. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6ff0a45..d709096 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,8 +28,8 @@ int main(int argc, char *argv[]) if(driveType == DRIVE_REMOTE) { const std::wstring messageStr = gt("disable-sandbox").toStdWString(); const std::wstring titleStr = gt("about-kiwix-desktop-title").toStdWString(); - const wchar_t* message = message_str.c_str(); - const wchar_t* title = title_str.c_str(); + const wchar_t* message = messageStr.c_str(); + const wchar_t* title = titleStr.c_str(); int msgboxID = MessageBoxExW(NULL, message, title, MB_YESNO | MB_ICONQUESTION, 0); if (msgboxID == IDYES) qputenv("QTWEBENGINE_CHROMIUM_FLAGS", QByteArray("--no-sandbox"));