Added handling of selected_action blank in fileBrowser

This commit is contained in:
Manuel Cortez 2017-02-23 13:31:33 -06:00
parent 68bd275f93
commit 30e88248e0

View File

@ -771,11 +771,11 @@ class fileBrowser(Listbox):
else:
self.pos += 1
elif c in (10, 261, curses.KEY_RIGHT): # newline or right arrow
if self.getDir() in self.prev_items:
if self.getDir() in self.prev_items and self.selected_action != "":
self.done = 1
self.dir = self.getDir()
return 1
elif os.path.isfile(self.getDir()) and self.select_type == "file":
elif os.path.isfile(self.getDir()) and self.select_type == "file" and self.selected_action != "":
self.done = 1
self.dir = self.getDir()
self.setStatus(self.dir)