check if djv_path is set before selection validation

This commit is contained in:
Jakub Trllo 2019-03-09 18:50:26 +01:00
parent a05c146f43
commit d72e6ccd89

View file

@ -66,7 +66,8 @@ class DJVViewAction(BaseHandler):
def discover(self, event):
"""Return available actions based on *event*. """
if self.djv_path is None:
return
if not self.is_valid_selection(event):
return