From 0e16bf01a5665a24f40c0550d77b0c5323094b86 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 3 Feb 2014 16:34:56 +0100 Subject: [PATCH] Windows: Silence QWindowsOleDataObject::GetData(). Change-Id: Iad97a35af334f951f56a7bf02ec1bf2873901aa1 Reviewed-by: Joerg Bornemann --- src/plugins/platforms/windows/qwindowsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowsole.cpp b/src/plugins/platforms/windows/qwindowsole.cpp index 5c5dbf9cfe..4f641d781d 100644 --- a/src/plugins/platforms/windows/qwindowsole.cpp +++ b/src/plugins/platforms/windows/qwindowsole.cpp @@ -140,7 +140,7 @@ QWindowsOleDataObject::GetData(LPFORMATETC pformatetc, LPSTGMEDIUM pmedium) { HRESULT hr = ResultFromScode(DATA_E_FORMATETC); - if (lcQpaMime().isDebugEnabled()) { + if (QWindowsContext::verbose > 1 && lcQpaMime().isDebugEnabled()) { wchar_t buf[256] = {0}; GetClipboardFormatName(pformatetc->cfFormat, buf, 255); qCDebug(lcQpaMime) <<__FUNCTION__ << "CF = " << pformatetc->cfFormat << QString::fromWCharArray(buf);