Merge pull request #1182 from kiwix/fix_msg_box

This commit is contained in:
Matthieu Gautier 2024-08-19 14:40:42 +02:00 committed by GitHub
commit 4b939e4097
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"));