712 Public method to start the VCS status monitor thread. |
712 Public method to start the VCS status monitor thread. |
713 |
713 |
714 @param project reference to the project object |
714 @param project reference to the project object |
715 @return reference to the monitor thread (QThread) |
715 @return reference to the monitor thread (QThread) |
716 """ |
716 """ |
717 if project.pudata["VCSSTATUSMONITORINTERVAL"]: |
717 vcsStatusMonitorInterval = ( |
718 vcsStatusMonitorInterval = project.pudata[ |
718 project.pudata["VCSSTATUSMONITORINTERVAL"] |
719 "VCSSTATUSMONITORINTERVAL"] |
719 if project.pudata["VCSSTATUSMONITORINTERVAL"] else |
720 else: |
720 Preferences.getVCS("StatusMonitorInterval") |
721 vcsStatusMonitorInterval = Preferences.getVCS( |
721 ) |
722 "StatusMonitorInterval") |
|
723 if vcsStatusMonitorInterval > 0: |
722 if vcsStatusMonitorInterval > 0: |
724 self.statusMonitorThread = self._createStatusMonitorThread( |
723 self.statusMonitorThread = self._createStatusMonitorThread( |
725 vcsStatusMonitorInterval, project) |
724 vcsStatusMonitorInterval, project) |
726 if self.statusMonitorThread is not None: |
725 if self.statusMonitorThread is not None: |
727 self.statusMonitorThread.vcsStatusMonitorData.connect( |
726 self.statusMonitorThread.vcsStatusMonitorData.connect( |