mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure only absolute paths are stored in the viewer history
This commit is contained in:
parent
d85f985e9c
commit
017c0bd962
@ -987,7 +987,7 @@ class EbookViewer(MainWindow):
|
|||||||
vh.remove(pathtoebook)
|
vh.remove(pathtoebook)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
vh.insert(0, pathtoebook)
|
vh.insert(0, os.path.abspath(pathtoebook))
|
||||||
vprefs.set('viewer_open_history', vh[:50])
|
vprefs.set('viewer_open_history', vh[:50])
|
||||||
self.build_recent_menu()
|
self.build_recent_menu()
|
||||||
self.view.set_book_data(self.iterator)
|
self.view.set_book_data(self.iterator)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user