mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix opening of UNC paths on windows
This commit is contained in:
parent
a4e398d73c
commit
9922335c3b
@ -592,8 +592,11 @@ def open_url(qurl):
|
|||||||
|
|
||||||
|
|
||||||
def open_local_file(path):
|
def open_local_file(path):
|
||||||
url = QUrl.fromLocalFile(path)
|
if iswindows:
|
||||||
open_url(url)
|
os.startfile(os.path.normpath(path))
|
||||||
|
else:
|
||||||
|
url = QUrl.fromLocalFile(path)
|
||||||
|
open_url(url)
|
||||||
|
|
||||||
def is_ok_to_use_qt():
|
def is_ok_to_use_qt():
|
||||||
global gui_thread, _store_app
|
global gui_thread, _store_app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user