--- a/src/eric7/Project/AddFileDialog.py Fri Feb 23 16:52:01 2024 +0100 +++ b/src/eric7/Project/AddFileDialog.py Mon Feb 26 10:41:10 2024 +0100 @@ -128,12 +128,12 @@ sfile if fsInterface.isdir(sfile) else fsInterface.dirname(sfile) ) else: - directory = ( - sfile if os.path.isdir(sfile) else os.path.dirname(sfile) - ) + directory = sfile if os.path.isdir(sfile) else os.path.dirname(sfile) self.targetDirPicker.setText(directory) - self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(sfile)) + self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( + bool(sfile) + ) def getData(self): """