From 9319210c4c2b13e8900a2bce77176d775cafa07a Mon Sep 17 00:00:00 2001 From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Mon, 13 Jan 2020 08:33:10 +0100 Subject: [PATCH] Fix local folder not opening on windows, add extra slash Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- src/gui/tray/UserModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/tray/UserModel.cpp b/src/gui/tray/UserModel.cpp index aea75264a..eb010174b 100644 --- a/src/gui/tray/UserModel.cpp +++ b/src/gui/tray/UserModel.cpp @@ -45,7 +45,11 @@ ActivityListModel *User::getActivityModel() void User::openLocalFolder() { +#ifdef Q_OS_WIN + QString path = "file:///" + this->getFolder()->path(); +#else QString path = "file://" + this->getFolder()->path(); +#endif QDesktopServices::openUrl(path); } -- 2.30.2