Use clipboard_timeout instead of hardcoded 5000 (since its the same value)

Change-Id: Ia0edf04e36c8d30394a2bc9a691ab9aa78831f78
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
Albert Astals Cid 2012-01-05 17:09:57 +01:00 committed by Qt by Nokia
parent bf7f170607
commit c355c300d9

View File

@ -208,7 +208,7 @@ QXcbClipboard::~QXcbClipboard()
connection()->sync();
// waiting until the clipboard manager fetches the content.
if (!waitForClipboardEvent(m_owner, XCB_SELECTION_NOTIFY, 5000, true)) {
if (!waitForClipboardEvent(m_owner, XCB_SELECTION_NOTIFY, clipboard_timeout, true)) {
qWarning("QClipboard: Unable to receive an event from the "
"clipboard manager in a reasonable time");
}