summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-01-28 07:38:10 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-02-01 13:38:25 (GMT)
commit7386d37ae301092a3eecc9a3bf94dfd42509f666 (patch)
tree2066ac6902eaa44ed32d42cec0e2ddff91dca869
parentb3a8877f54bbd60a4f54439f5d551e1dfec7a9a9 (diff)
downloadQt-7386d37ae301092a3eecc9a3bf94dfd42509f666.zip
Qt-7386d37ae301092a3eecc9a3bf94dfd42509f666.tar.gz
Qt-7386d37ae301092a3eecc9a3bf94dfd42509f666.tar.bz2
Lighthouse: Wayland, if we don't have cursors installed
or the configuration is faulty, then don't change cursors
-rw-r--r--src/plugins/platforms/wayland/qwaylandcursor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandcursor.cpp b/src/plugins/platforms/wayland/qwaylandcursor.cpp
index f51281d..0ad0702 100644
--- a/src/plugins/platforms/wayland/qwaylandcursor.cpp
+++ b/src/plugins/platforms/wayland/qwaylandcursor.cpp
@@ -164,6 +164,9 @@ void QWaylandCursor::changeCursor(QCursor *cursor, QWidget *widget)
QImageReader reader(p->filename);
+ if (!reader.canRead())
+ return;
+
if (mBuffer == NULL || mBuffer->size() != reader.size()) {
if (mBuffer)
delete mBuffer;