summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2012-01-22 20:41:42 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-23 11:02:18 +0100
commit04a4b999023268d91575be50bd8d78d3f0ef0213 (patch)
tree22489e4348caaf91032ba1eaec6a83af01b2717e /src/plugins/sqldrivers
parent27df9a5a9761eebb609d59a78a0d9475873c06de (diff)
xcb: Don't crash on missing mouse pointer
The draganddrop examples all crashed here because they were using a default-constructed QImage() (i.e. one without any content). I guess this happens here because I don't have any mouse theme set. To test, one could start a second X server, but without any WM or DE. The "evil" QImage() came from QGuiApplicationPrivate::getPixmapCursor(). This function seems to just always "return QPixmap();". This fix is correct because the only caller has another fallback if the createNonStandardCursor()-fallback didn't work. This caller is QXcbCursor::createFontCursor(). Change-Id: I7ec7fbcfdf0203e983149b5e73016cc7e85ecf40 Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/sqldrivers')
0 files changed, 0 insertions, 0 deletions