}
}
return true;
- case WM_DRAWCLIPBOARD:
+ case WM_DRAWCLIPBOARD: {
+ const bool owned = ownsClipboard();
if (QWindowsContext::verboseOLE)
- qDebug("Clipboard changed");
- emitChanged(QClipboard::Clipboard);
+ qDebug("Clipboard changed owned %d", owned);
+ if (!owned) // changed is emitted by QClipboard in that case.
+ emitChanged(QClipboard::Clipboard);
// clean up the clipboard object if we no longer own the clipboard
- if (!ownsClipboard() && m_data)
+ if (!owned && m_data)
releaseIData();
propagateClipboardMessage(message, wParam, lParam);
+ }
return true;
case WM_DESTROY:
// Recommended shutdown
}
mac: CONFIG += insignificant_test # QTBUG-23057
-win32:CONFIG += insignificant_test # QTBUG-24184
load(testcase) # for target.path and installTestHelperApp()
installTestHelperApp("../copier/copier",copier,copier)