Commit 8e632c0e authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix Windows Qt6 build

parent 8bf80a7e
......@@ -885,7 +885,7 @@ void AgentBase::debugAgent(int argc, char **argv)
Q_UNUSED(argc)
#ifdef Q_OS_WIN
if (qEnvironmentVariableIsSet("AKONADI_DEBUG_WAIT")) {
if (QByteArray(argv[0]).endsWith(qgetenv("AKONADI_DEBUG_WAIT") + ".exe")) {
if (QByteArray(argv[0]).endsWith(QByteArray(qgetenv("AKONADI_DEBUG_WAIT") + QByteArrayLiteral(".exe")))) {
while (!IsDebuggerPresent()) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment