mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-22 15:44:59 +00:00
PICARD-1415: Fix opening UNC paths on Windows
Removes an older workaround that is no longer applicable.
This commit is contained in:
committed by
Philipp Wolfer
parent
4dd63af6c5
commit
8bcc01920a
@@ -889,12 +889,7 @@ class MainWindow(QtWidgets.QMainWindow, PreserveGeometry):
|
||||
return self.tagger.analyze(self.selected_objects)
|
||||
|
||||
def _openUrl(self, url):
|
||||
# Resolves a bug in Qt opening remote URLs - QTBUG-13359
|
||||
# See https://bugreports.qt.io/browse/QTBUG-13359
|
||||
if url.startswith("\\\\") or url.startswith("//"):
|
||||
return QtCore.QUrl(QtCore.QDir.toNativeSeparators(url))
|
||||
else:
|
||||
return QtCore.QUrl.fromLocalFile(url)
|
||||
return QtCore.QUrl.fromLocalFile(url)
|
||||
|
||||
def play_file(self):
|
||||
files = self.tagger.get_files_from_objects(self.selected_objects)
|
||||
|
||||
Reference in New Issue
Block a user