9575:635b6c5a36e1 | 9576:be9f8e7e42e0 |
---|---|
1013 @type str | 1013 @type str |
1014 """ | 1014 """ |
1015 try: | 1015 try: |
1016 from send2trash import send2trash as s2t # __IGNORE_WARNING_I10__ | 1016 from send2trash import send2trash as s2t # __IGNORE_WARNING_I10__ |
1017 | 1017 |
1018 trashMsg = self.tr("Do you really want to move this file to the" " trash?") | 1018 trashMsg = self.tr("Do you really want to move this file to the trash?") |
1019 except ImportError: | 1019 except ImportError: |
1020 s2t = os.remove | 1020 s2t = os.remove |
1021 trashMsg = self.tr("Do you really want to delete this file?") | 1021 trashMsg = self.tr("Do you really want to delete this file?") |
1022 | 1022 |
1023 dlg = DeleteFilesConfirmationDialog( | 1023 dlg = DeleteFilesConfirmationDialog( |
1046 try: | 1046 try: |
1047 from send2trash import send2trash # __IGNORE_WARNING_I10__ | 1047 from send2trash import send2trash # __IGNORE_WARNING_I10__ |
1048 | 1048 |
1049 s2tAvailable = True | 1049 s2tAvailable = True |
1050 trashMsg = self.tr( | 1050 trashMsg = self.tr( |
1051 "Do you really want to move this directory to" " the trash?" | 1051 "Do you really want to move this directory to the trash?" |
1052 ) | 1052 ) |
1053 except ImportError: | 1053 except ImportError: |
1054 s2tAvailable = False | 1054 s2tAvailable = False |
1055 trashMsg = self.tr("Do you really want to delete this directory?") | 1055 trashMsg = self.tr("Do you really want to delete this directory?") |
1056 | 1056 |
1086 fileNames.append(itm.fileName()) | 1086 fileNames.append(itm.fileName()) |
1087 | 1087 |
1088 try: | 1088 try: |
1089 from send2trash import send2trash as s2t # __IGNORE_WARNING_I10__ | 1089 from send2trash import send2trash as s2t # __IGNORE_WARNING_I10__ |
1090 | 1090 |
1091 trashMsg = self.tr( | 1091 trashMsg = self.tr("Do you really want to move these files to the trash?") |
1092 "Do you really want to move these files to the" " trash?" | |
1093 ) | |
1094 except ImportError: | 1092 except ImportError: |
1095 s2t = os.remove | 1093 s2t = os.remove |
1096 trashMsg = self.tr("Do you really want to delete these files?") | 1094 trashMsg = self.tr("Do you really want to delete these files?") |
1097 | 1095 |
1098 dlg = DeleteFilesConfirmationDialog( | 1096 dlg = DeleteFilesConfirmationDialog( |