2497 return False |
2497 return False |
2498 |
2498 |
2499 # stop the VCS monitor thread |
2499 # stop the VCS monitor thread |
2500 if self.vcs is not None: |
2500 if self.vcs is not None: |
2501 self.vcs.stopStatusMonitor() |
2501 self.vcs.stopStatusMonitor() |
2502 self.vcs.vcsStatusMonitorData.disconnect(self.__model.changeVCSStates) |
2502 try: |
2503 self.vcs.vcsStatusMonitorStatus.disconnect(self.__statusMonitorStatus) |
2503 self.vcs.vcsStatusMonitorData.disconnect( |
|
2504 self.__model.changeVCSStates) |
|
2505 except TypeError: |
|
2506 pass |
|
2507 try: |
|
2508 self.vcs.vcsStatusMonitorStatus.disconnect( |
|
2509 self.__statusMonitorStatus) |
|
2510 except TypeError: |
|
2511 pass |
2504 |
2512 |
2505 # now save the tasks |
2513 # now save the tasks |
2506 if not noSave: |
2514 if not noSave: |
2507 self.__writeTasks() |
2515 self.__writeTasks() |
2508 self.ui.taskViewer.clearProjectTasks() |
2516 self.ui.taskViewer.clearProjectTasks() |