mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 23:13:25 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -464,6 +464,8 @@ def continue_reading(self):
|
|||
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…
Reference in a new issue