dont show file menu if no files are selected

This commit is contained in:
Marcos Pinto 2008-04-08 06:19:48 +00:00
parent 3ca459df87
commit 346a25564a
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class FilesTab:
"""This is a callback for showing the right-click context menu."""
log.debug("on_button_press_event")
# We only care about right-clicks
if event.button == 3:
if self.get_selected_files() and event.button == 3:
self.file_menu.popup(None, None, None, event.button, event.time)
return True