1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-13 12:05:22 +02: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:
Andreas Traczyk 2021-10-28 11:45:48 -04:00
parent 996ad1d58c
commit ab934442bc

View file

@ -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);