mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2026-01-05 03:42:52 +08:00
chat: fix "open location" feature on windows
+ 3 or 1 slashs in file scheme (rfc1738 3.10) Change-Id: I77c9be41a5f4b7ca99929d53efbf1883ed127d52
This commit is contained in:
@@ -204,8 +204,8 @@ MessagesAdapter::openDirectory(const QString& path)
|
||||
if (!f.isDir())
|
||||
p = f.dir().absolutePath();
|
||||
QString url;
|
||||
if (!p.startsWith("file://"))
|
||||
url = "file://" + p;
|
||||
if (!p.startsWith("file:/"))
|
||||
url = "file:///" + p;
|
||||
else
|
||||
url = p;
|
||||
openUrl(url);
|
||||
|
||||
Reference in New Issue
Block a user