41 |
41 |
42 if delete: |
42 if delete: |
43 self.branchComboBox.addItem("") |
43 self.branchComboBox.addItem("") |
44 else: |
44 else: |
45 self.branchComboBox.addItem(self.__allBranches) |
45 self.branchComboBox.addItem(self.__allBranches) |
|
46 if "main" in branches: |
|
47 if not delete: |
|
48 self.branchComboBox.addItem("main") |
|
49 branches.remove("main") |
46 if "master" in branches: |
50 if "master" in branches: |
47 if not delete: |
51 if not delete: |
48 self.branchComboBox.addItem("master") |
52 self.branchComboBox.addItem("master") |
49 branches.remove("master") |
53 branches.remove("master") |
50 self.branchComboBox.addItems(sorted(branches)) |
54 self.branchComboBox.addItems(sorted(branches)) |