From afcdefc9499515b9b86ea44c78491fc828b91acd Mon Sep 17 00:00:00 2001 From: Marco Marche Date: Wed, 14 Feb 2024 10:03:15 +0100 Subject: [PATCH] fix: bad ItemFlag to int cast in table drop handler --- appGUI/GUIElements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appGUI/GUIElements.py b/appGUI/GUIElements.py index 5db4bf51..0a55c24e 100644 --- a/appGUI/GUIElements.py +++ b/appGUI/GUIElements.py @@ -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()