352 @param coord the position of the mouse pointer (QPoint) |
352 @param coord the position of the mouse pointer (QPoint) |
353 """ |
353 """ |
354 if not self.project.isOpen(): |
354 if not self.project.isOpen(): |
355 return |
355 return |
356 |
356 |
357 with contextlib.suppress(Exception): |
357 with contextlib.suppress(Exception): # secok |
358 categories = self.getSelectedItemsCountCategorized( |
358 categories = self.getSelectedItemsCountCategorized( |
359 [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem] |
359 [ProjectBrowserFileItem, ProjectBrowserSimpleDirectoryItem] |
360 ) |
360 ) |
361 cnt = categories["sum"] |
361 cnt = categories["sum"] |
362 if cnt <= 1: |
362 if cnt <= 1: |