Browse Source

Fixup RackListWidget::dragLeaveEvent

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
8169fe32a3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      source/frontend/widgets/racklistwidget.py

+ 3
- 6
source/frontend/widgets/racklistwidget.py View File

@@ -297,12 +297,9 @@ class RackListWidget(QListWidget):
self.setCurrentRow(-1)

def dragLeaveEvent(self, event):
if not self.fWasLastDragValid:
QListWidget.dragLeaveEvent(self, event)
return

event.acceptProposedAction()
self.fWasLastDragValid = False
if self.fWasLastDragValid:
self.fWasLastDragValid = False
QListWidget.dragLeaveEvent(self, event)

# --------------------------------------------------------------------------------------------------------



Loading…
Cancel
Save