From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Mon, 13 Jan 2020 07:33:10 +0000 (+0100) Subject: Fix local folder not opening on windows, add extra slash X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~413^2~50 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9319210c4c2b13e8900a2bce77176d775cafa07a;p=nextcloud-desktop.git Fix local folder not opening on windows, add extra slash Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- 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); }