Added handling of selected_action blank in fileBrowser
This commit is contained in:
parent
68bd275f93
commit
30e88248e0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user