917 if itm: |
917 if itm: |
918 itm.setVcsState(state) |
918 itm.setVcsState(state) |
919 itm.setVcsStatus(self.project.vcs.vcsName()) |
919 itm.setVcsStatus(self.project.vcs.vcsName()) |
920 index1 = self.createIndex(itm.row(), 0, itm) |
920 index1 = self.createIndex(itm.row(), 0, itm) |
921 index2 = self.createIndex( |
921 index2 = self.createIndex( |
922 itm.row(), self.rootItem.columnCount(), itm |
922 itm.row(), self.rootItem.columnCount() - 1, itm |
923 ) |
923 ) |
924 self.dataChanged.emit(index1, index2) |
924 self.dataChanged.emit(index1, index2) |
925 |
925 |
926 head, tail = os.path.split(name) |
926 head, tail = os.path.split(name) |
927 if head != lastHead: |
927 if head != lastHead: |
958 state = id_.vcsState |
958 state = id_.vcsState |
959 if state != itm.vcsState: |
959 if state != itm.vcsState: |
960 itm.setVcsState(state) |
960 itm.setVcsState(state) |
961 index1 = self.createIndex(itm.row(), 0, itm) |
961 index1 = self.createIndex(itm.row(), 0, itm) |
962 index2 = self.createIndex( |
962 index2 = self.createIndex( |
963 itm.row(), self.rootItem.columnCount(), itm |
963 itm.row(), self.rootItem.columnCount() - 1, itm |
964 ) |
964 ) |
965 self.dataChanged.emit(index1, index2) |
965 self.dataChanged.emit(index1, index2) |
966 path, tail = os.path.split(path) |
966 path, tail = os.path.split(path) |
967 |
967 |
968 def preferencesChanged(self): |
968 def preferencesChanged(self): |