src/eric7/Project/ProjectOthersBrowser.py

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9573
9960d19d66b5
child 9653
e67609152c5e
equal deleted inserted replaced
9575:635b6c5a36e1 9576:be9f8e7e42e0
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):

eric ide

mercurial