Check for the clipboard manager when looping due to app quiting
authorAlbert Astals Cid <aacid@kde.org>
Thu, 5 Jan 2012 10:11:27 +0000 (11:11 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 13:59:12 +0000 (14:59 +0100)
commit689c4009fb9be348f9137a9092b068e056a3d8b3
tree52f71eb051bdc4154d41c8994b8d2f05c7c631ab
parent848f53a268449e6c581737fe2930bc75967e97ce
Check for the clipboard manager when looping due to app quiting

One can be extremely unlucky and on session logout get this:
 * All apps are going down
 * A Qt app checks if the clipboard manager is there to yield its clipboard contents
   * The clipboard manager is still there
 * Then just after that check, the clipboard manager finishes because of the session end
 * This means the Qt app will loop for 5 seconds trying to yield its clipboard contents
   to a clipboard manager that is not there anymore

Change-Id: Ia89670d4deb72f12e660a0d7aa5b2d212955d6fe
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/plugins/platforms/xcb/qxcbclipboard.cpp
src/plugins/platforms/xcb/qxcbclipboard.h