Do not allow drag events when window is blocked by modal window
Check for QWindowPrivate::blockedByModalWindow in QGuiApplicationPrivate::processDrag(). Task-number: QTBUG-46287 Change-Id: I8f43de8389f34458f9e10b37b94806b47a50d40a Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io> Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>bb10
parent
b0f142e353
commit
e055efb445
|
|
@ -2868,7 +2868,7 @@ QPlatformDragQtResponse QGuiApplicationPrivate::processDrag(QWindow *w, const QM
|
|||
static QPointer<QWindow> currentDragWindow;
|
||||
static Qt::DropAction lastAcceptedDropAction = Qt::IgnoreAction;
|
||||
QPlatformDrag *platformDrag = platformIntegration()->drag();
|
||||
if (!platformDrag) {
|
||||
if (!platformDrag || (w && w->d_func()->blockedByModalWindow)) {
|
||||
lastAcceptedDropAction = Qt::IgnoreAction;
|
||||
return QPlatformDragQtResponse(false, lastAcceptedDropAction, QRect());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue