fix: bad ItemFlag to int cast in table drop handler

This commit is contained in:
Marco Marche
2024-02-14 10:03:15 +01:00
parent 4c02e793f3
commit afcdefc949

View File

@@ -4599,7 +4599,7 @@ class FCTable(QtWidgets.QTableWidget):
elif rect.bottom() - pos.y() < margin:
return True
# noinspection PyTypeChecker
drop_enabled = int(self.model().flags(index)) & Qt.ItemFlag.ItemIsDropEnabled
drop_enabled = self.model().flags(index) & Qt.ItemFlag.ItemIsDropEnabled
return rect.contains(pos, True) and not drop_enabled and pos.y() >= rect.center().y()