597 BrowserDirectoryItem, |
597 BrowserDirectoryItem, |
598 ] |
598 ] |
599 ) |
599 ) |
600 for itm in itmList: |
600 for itm in itmList: |
601 if isinstance(itm, BrowserDirectoryItem): |
601 if isinstance(itm, BrowserDirectoryItem): |
602 QDesktopServices.openUrl(QUrl(itm.dirName())) |
602 directory = itm.dirName() |
603 else: |
603 else: |
604 QDesktopServices.openUrl(QUrl(os.path.dirname(itm.fileName()))) |
604 directory = os.path.dirname(itm.fileName()) |
|
605 ok = FileSystemUtilities.startfile(directory) |
|
606 |
|
607 if not ok: |
|
608 EricMessageBox.warning( |
|
609 self, |
|
610 self.tr("Show in File Manager"), |
|
611 self.tr( |
|
612 "<p>The directory of the selected item (<b>{0}</b>could not be" |
|
613 " shown in a file manager application.</p>" |
|
614 ).format(directory), |
|
615 ) |
605 |
616 |
606 def __showMimeType(self): |
617 def __showMimeType(self): |
607 """ |
618 """ |
608 Private slot to show the mime type of the selected entry. |
619 Private slot to show the mime type of the selected entry. |
609 """ |
620 """ |