126 ) |
126 ) |
127 directory = ( |
127 directory = ( |
128 sfile if fsInterface.isdir(sfile) else fsInterface.dirname(sfile) |
128 sfile if fsInterface.isdir(sfile) else fsInterface.dirname(sfile) |
129 ) |
129 ) |
130 else: |
130 else: |
131 directory = ( |
131 directory = sfile if os.path.isdir(sfile) else os.path.dirname(sfile) |
132 sfile if os.path.isdir(sfile) else os.path.dirname(sfile) |
|
133 ) |
|
134 self.targetDirPicker.setText(directory) |
132 self.targetDirPicker.setText(directory) |
135 |
133 |
136 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(sfile)) |
134 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
|
135 bool(sfile) |
|
136 ) |
137 |
137 |
138 def getData(self): |
138 def getData(self): |
139 """ |
139 """ |
140 Public slot to retrieve the dialogs data. |
140 Public slot to retrieve the dialogs data. |
141 |
141 |