Ensure only absolute paths are stored in the viewer history

This commit is contained in:
Kovid Goyal 2017-01-20 07:53:27 +05:30
parent d85f985e9c
commit 017c0bd962

View File

@ -987,7 +987,7 @@ class EbookViewer(MainWindow):
vh.remove(pathtoebook)
except:
pass
vh.insert(0, pathtoebook)
vh.insert(0, os.path.abspath(pathtoebook))
vprefs.set('viewer_open_history', vh[:50])
self.build_recent_menu()
self.view.set_book_data(self.iterator)