tdf#123859: only accept drops when drop target was registered
commit6a67ecd9b12e68031b5dbacb591955b59f476b86
authorKatarina Behrens <Katarina.Behrens@cib.de>
Mon, 29 Apr 2019 13:42:40 +0000 (29 15:42 +0200)
committerKatarina Behrens <Katarina.Behrens@cib.de>
Tue, 30 Apr 2019 08:08:09 +0000 (30 10:08 +0200)
treeb8631ba885deaee9308cd093b6bb028bffc278da
parentf45f8d0c6eb1d5d28a92399b82d13c2894f06069
tdf#123859: only accept drops when drop target was registered

some hard to reliably reproduce crashes when drag'n'dropping slides
in slide sorter in Impress can be tracked down to null drop target.
Not every SalFrame is registered as drop target, so let's accept
drops (QWidget::setAcceptDrops) only for those frames that are.

Change-Id: I01f006d619209c558e8d9976116daad65f51d7d9
Reviewed-on: https://gerrit.libreoffice.org/71533
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
vcl/qt5/Qt5Frame.cxx
vcl/qt5/Qt5Widget.cxx