388 mimetype = MimeTypes.mimeType(itmList[0].fileName()) |
388 mimetype = MimeTypes.mimeType(itmList[0].fileName()) |
389 if mimetype is None: |
389 if mimetype is None: |
390 EricMessageBox.warning( |
390 EricMessageBox.warning( |
391 self, |
391 self, |
392 self.tr("Show Mime-Type"), |
392 self.tr("Show Mime-Type"), |
393 self.tr( |
393 self.tr("""The mime type of the file could not be determined."""), |
394 """The mime type of the file could not be determined.""" |
|
395 ), |
|
396 ) |
394 ) |
397 elif mimetype.split("/")[0] == "text": |
395 elif mimetype.split("/")[0] == "text": |
398 EricMessageBox.information( |
396 EricMessageBox.information( |
399 self, |
397 self, |
400 self.tr("Show Mime-Type"), |
398 self.tr("Show Mime-Type"), |
506 del dirNames |
504 del dirNames |
507 |
505 |
508 dlg = DeleteFilesConfirmationDialog( |
506 dlg = DeleteFilesConfirmationDialog( |
509 self.parent(), |
507 self.parent(), |
510 self.tr("Delete files/directories"), |
508 self.tr("Delete files/directories"), |
511 self.tr("Do you really want to delete these entries from the" " project?"), |
509 self.tr("Do you really want to delete these entries from the project?"), |
512 names, |
510 names, |
513 ) |
511 ) |
514 |
512 |
515 if dlg.exec() == QDialog.DialogCode.Accepted: |
513 if dlg.exec() == QDialog.DialogCode.Accepted: |
516 for itm, fn2, fn in zip(items[:], fullNames, names): |
514 for itm, fn2, fn in zip(items[:], fullNames, names): |