86 self.filenameCombo.setEnabled(False) |
86 self.filenameCombo.setEnabled(False) |
87 self.fileButton.setEnabled(False) |
87 self.fileButton.setEnabled(False) |
88 self.linenoSpinBox.setEnabled(False) |
88 self.linenoSpinBox.setEnabled(False) |
89 self.conditionCombo.setFocus() |
89 self.conditionCombo.setFocus() |
90 else: |
90 else: |
91 self.setWindowTitle(self.trUtf8("Add Breakpoint")) |
91 self.setWindowTitle(self.tr("Add Breakpoint")) |
92 # set the filename |
92 # set the filename |
93 if fn is None: |
93 if fn is None: |
94 fn = "" |
94 fn = "" |
95 try: |
95 try: |
96 curr = filenameHistory.index(fn) |
96 curr = filenameHistory.index(fn) |
118 """ |
118 """ |
119 Private slot to select a file via a file selection dialog. |
119 Private slot to select a file via a file selection dialog. |
120 """ |
120 """ |
121 file = E5FileDialog.getOpenFileName( |
121 file = E5FileDialog.getOpenFileName( |
122 self, |
122 self, |
123 self.trUtf8("Select filename of the breakpoint"), |
123 self.tr("Select filename of the breakpoint"), |
124 self.filenameCombo.currentText(), |
124 self.filenameCombo.currentText(), |
125 "") |
125 "") |
126 |
126 |
127 if file: |
127 if file: |
128 self.filenameCombo.setEditText(Utilities.toNativeSeparators(file)) |
128 self.filenameCombo.setEditText(Utilities.toNativeSeparators(file)) |