diff --git a/src/winmain/qtmain_winrt.cpp b/src/winmain/qtmain_winrt.cpp index 151294d2c4..22d3f5bd91 100644 --- a/src/winmain/qtmain_winrt.cpp +++ b/src/winmain/qtmain_winrt.cpp @@ -81,6 +81,27 @@ typedef ITypedEventHandler(data) + 1, 4096 - sizeof(quint32), + message.data(), (message.length() + 1) * sizeof(wchar_t)); + UnmapViewOfFile(data); + SetEvent(event); +#endif // !Q_OS_WINPHONE + defaultMessageHandler(type, context, message); +} + class AppContainer : public Microsoft::WRL::RuntimeClass { public: @@ -127,6 +148,10 @@ public: // (Unused) handle will automatically be closed when the app exits CreateFile2(reinterpret_cast(pidFileName.utf16()), 0, FILE_SHARE_READ|FILE_SHARE_DELETE, CREATE_ALWAYS, ¶ms); + // Install the develMode message handler +#ifndef Q_OS_WINPHONE + defaultMessageHandler = qInstallMessageHandler(devMessageHandler); +#endif } // Wait for debugger before continuing if (debugWait) {