Windows: Use PostMessage for clipboard notifications for debugged apps.

Task-number: QTBUG-33492

Change-Id: I68af5f8ad767c55c95f758259cbb5d8a8080e70e
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Friedemann Kleint 2013-09-26 16:48:09 +02:00 committed by The Qt Project
parent 00da2e615e
commit 61c49611fc

View File

@ -203,13 +203,12 @@ void QWindowsClipboard::propagateClipboardMessage(UINT message, WPARAM wParam, L
qWarning("%s: Cowardly refusing to send clipboard message to hung application...", Q_FUNC_INFO);
return;
}
// Also refuse if the process is being debugged, specifically, if it is
// Do not block if the process is being debugged, specifically, if it is
// displaying a runtime assert, which is not caught by isHungAppWindow().
if (isProcessBeingDebugged(m_nextClipboardViewer)) {
qWarning("%s: Cowardly refusing to send clipboard message to application under debugger...", Q_FUNC_INFO);
return;
}
SendMessage(m_nextClipboardViewer, message, wParam, lParam);
if (isProcessBeingDebugged(m_nextClipboardViewer))
PostMessage(m_nextClipboardViewer, message, wParam, lParam);
else
SendMessage(m_nextClipboardViewer, message, wParam, lParam);
}
/*!