eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

branch
eric7
changeset 8412
16e8c2896469
parent 8358
144a6b854f70
child 8621
8c9f41115c04
diff -r da70caa2246d -r 16e8c2896469 eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py
--- a/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Tue Jun 08 19:29:24 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Tue Jun 08 19:33:51 2021 +0200
@@ -712,7 +712,8 @@
         for index in range(self.statusList.topLevelItemCount()):
             itm = self.statusList.topLevelItem(index)
             if (
-                itm.flags() & Qt.ItemFlag.ItemIsUserCheckable and
+                (itm.flags() & Qt.ItemFlag.ItemIsUserCheckable ==
+                 Qt.ItemFlag.ItemIsUserCheckable) and
                 itm.checkState(self.__toBeCommittedColumn) ==
                 Qt.CheckState.Unchecked
             ):
@@ -764,7 +765,10 @@
         """
         for index in range(self.statusList.topLevelItemCount()):
             itm = self.statusList.topLevelItem(index)
-            if itm.flags() & Qt.ItemFlag.ItemIsUserCheckable:
+            if (
+                itm.flags() & Qt.ItemFlag.ItemIsUserCheckable ==
+                Qt.ItemFlag.ItemIsUserCheckable
+            ):
                 if selected:
                     itm.setCheckState(self.__toBeCommittedColumn,
                                       Qt.CheckState.Checked)

eric ide

mercurial