mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Workaround for people that create symlinks without file extensions to files with file extensions.
Fixes #1929719
This commit is contained in:
parent
e1a3458c51
commit
35f6717ae1
@ -464,6 +464,8 @@ class EbookViewer(MainWindow):
|
||||
self.load_ebook(entry['pathtoebook'])
|
||||
|
||||
def load_ebook(self, pathtoebook, open_at=None, reload_book=False):
|
||||
if '.' not in os.path.basename(pathtoebook):
|
||||
pathtoebook = os.path.abspath(os.path.realpath(pathtoebook))
|
||||
performance_monitor('Load of book started', reset=True)
|
||||
self.actions_toolbar.update_action_state(False)
|
||||
self.web_view.show_home_page_on_ready = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user