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:
parent
bf7f170607
commit
c355c300d9
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user