354 self.tr( |
354 self.tr( |
355 "Do you really want to delete these entries from the" |
355 "Do you really want to delete these entries from the" |
356 " project?"), |
356 " project?"), |
357 names) |
357 names) |
358 |
358 |
359 if dlg.exec() == QDialog.Accepted: |
359 if dlg.exec() == QDialog.DialogCode.Accepted: |
360 for itm, fn2, fn in zip(items[:], fullNames, names): |
360 for itm, fn2, fn in zip(items[:], fullNames, names): |
361 if isinstance(itm, ProjectBrowserFileItem): |
361 if isinstance(itm, ProjectBrowserFileItem): |
362 self.closeSourceWindow.emit(fn2) |
362 self.closeSourceWindow.emit(fn2) |
363 self.project.deleteFile(fn) |
363 self.project.deleteFile(fn) |
364 elif isinstance(itm, ProjectBrowserDirectoryItem): |
364 elif isinstance(itm, ProjectBrowserDirectoryItem): |