Revert "End the drag if the dockwidget is being hidden"
This reverts commitbb1075b705fec8and798e0064e9. This broke drag and drop of QDockWidget if there is no animations (QTBUG-54185) and this caused numerous crash with GrouppedDragging: crashes when dropping on another floating QDockWidget, or when dragging away. The problem being that 'endDrag' would cause the QDockWidget to be hiden temporarily and it would recurse into 'endDrag' and have unwanted effects Task-number: QTBUG-54185 Change-Id: Icad9c6748448783e039bde205b60133f89f25e8e Reviewed-by: Andy Shaw <andy.shaw@qt.io>
parent
7592643407
commit
f54bd20f6a
|
|
@ -1445,8 +1445,6 @@ bool QDockWidget::event(QEvent *event)
|
|||
switch (event->type()) {
|
||||
#ifndef QT_NO_ACTION
|
||||
case QEvent::Hide:
|
||||
if (d->state && d->state->dragging)
|
||||
d->endDrag(true);
|
||||
if (layout != 0)
|
||||
layout->keepSize(this);
|
||||
d->toggleViewAction->setChecked(false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue