Fix clipboard crash in clients with weston
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Sat, 19 May 2012 16:45:53 +0000 (19:45 +0300)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 21 May 2012 06:38:55 +0000 (08:38 +0200)
commit91982e550684777a2036ff0964d410d0dc9f2f9b
tree3820718eb0eb2e9e7cbe01f2abd4a5fe09ce6360
parent42f6dd89261ef94099f05f9f813a25d0cce8d8ac
Fix clipboard crash in clients with weston

The offer passed to selection() can be null. This case was not handled
before because it never happens with qt-compositor. Copy/paste is still
not ok with weston but at least the apps won't crash.

Change-Id: I91d529e9d8b179724637d05bb9b95ec5843bda2b
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/plugins/platforms/wayland/qwaylanddatadevicemanager.cpp