mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
dont show file menu if no files are selected
This commit is contained in:
parent
3ca459df87
commit
346a25564a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue