532 @param coord the position of the mouse pointer (QPoint) |
532 @param coord the position of the mouse pointer (QPoint) |
533 """ |
533 """ |
534 if not self.project.isOpen(): |
534 if not self.project.isOpen(): |
535 return |
535 return |
536 |
536 |
537 with contextlib.suppress(Exception): |
537 with contextlib.suppress(Exception): # secok |
538 categories = self.getSelectedItemsCountCategorized( |
538 categories = self.getSelectedItemsCountCategorized( |
539 [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem] |
539 [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem] |
540 ) |
540 ) |
541 cnt = categories["sum"] |
541 cnt = categories["sum"] |
542 if cnt <= 1: |
542 if cnt <= 1: |