74 """ |
74 """ |
75 self.changeListsDict = {} |
75 self.changeListsDict = {} |
76 self.cancelled = False |
76 self.cancelled = False |
77 |
77 |
78 self.filesLabel.setText( |
78 self.filesLabel.setText( |
79 self.trUtf8("Files (relative to {0}):").format(path)) |
79 self.tr("Files (relative to {0}):").format(path)) |
80 |
80 |
81 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) |
81 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) |
82 QApplication.processEvents() |
82 QApplication.processEvents() |
83 |
83 |
84 locker = QMutexLocker(self.vcs.vcsExecutionMutex) |
84 locker = QMutexLocker(self.vcs.vcsExecutionMutex) |
111 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) |
111 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) |
112 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) |
112 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) |
113 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
113 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
114 |
114 |
115 if len(self.changeListsDict) == 0: |
115 if len(self.changeListsDict) == 0: |
116 self.changeLists.addItem(self.trUtf8("No changelists found")) |
116 self.changeLists.addItem(self.tr("No changelists found")) |
117 self.buttonBox.button(QDialogButtonBox.Close).setFocus( |
117 self.buttonBox.button(QDialogButtonBox.Close).setFocus( |
118 Qt.OtherFocusReason) |
118 Qt.OtherFocusReason) |
119 else: |
119 else: |
120 self.changeLists.setCurrentRow(0) |
120 self.changeLists.setCurrentRow(0) |
121 self.changeLists.setFocus(Qt.OtherFocusReason) |
121 self.changeLists.setFocus(Qt.OtherFocusReason) |