Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Müller <fmueller@owncloud.com>2022-08-01 23:34:16 +0300
committerFabian Müller <fmueller@owncloud.com>2022-08-01 23:37:49 +0300
commit4db0d619721e9c1b1dbc82b72683471d9f04a5c4 (patch)
treea43fa62ab24b8301dcc849ae3d9df5afe3b4258b
parent8f59224e6cc622de073cbeb18a3c35a4aa548809 (diff)
Use existing helper to display directory in file browserwork/issue-9750
-rw-r--r--src/gui/accountsettings.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 6cdddcba2..ffe1f8659 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -57,6 +57,7 @@
#include "account.h"
#include "askexperimentalvirtualfilesfeaturemessagebox.h"
#include "askforoauthlogindialog.h"
+#include "openfilemanager.h"
namespace OCC {
@@ -281,9 +282,9 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
if (!folderUrl.isEmpty()) {
QAction *ac = menu->addAction(CommonStrings::showInFileBrowser(), [folderUrl]() {
qCInfo(lcAccountSettings) << "Opening local folder" << folderUrl;
- if (!QDesktopServices::openUrl(folderUrl)) {
- qCWarning(lcAccountSettings) << "QDesktopServices::openUrl failed for" << folderUrl;
- }
+
+ // it does not make too much sense to convert it back, but it's easier than maintaining another variable
+ showInFileManager(folderUrl.toLocalFile());
});
if (!QFile::exists(folderUrl.toLocalFile())) {