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:
parent
00da2e615e
commit
61c49611fc
@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user