[Pkg-owncloud-commits] [owncloud-client] 33/70: owncloudgui: use QUrl::fromLocalFile

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 1 10:21:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 4d4a0148e4be0469409a6ecbfd126f7c6fe632bd
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Fri Jun 20 11:20:37 2014 +0200

    owncloudgui: use QUrl::fromLocalFile
---
 src/mirall/owncloudgui.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/mirall/owncloudgui.cpp b/src/mirall/owncloudgui.cpp
index 5999a5b..5ea9c69 100644
--- a/src/mirall/owncloudgui.cpp
+++ b/src/mirall/owncloudgui.cpp
@@ -326,10 +326,9 @@ void ownCloudGui::slotShowOptionalTrayMessage(const QString &title, const QStrin
 void ownCloudGui::slotFolderOpenAction( const QString& alias )
 {
     Folder *f = FolderMan::instance()->folder(alias);
-    qDebug() << "opening local url " << f->path();
     if( f ) {
-        QUrl url(f->path(), QUrl::TolerantMode);
-        url.setScheme( QLatin1String("file") );
+        qDebug() << "opening local url " << f->path();
+        QUrl url = QUrl::fromLocalFile(f->path);
 
 #ifdef Q_OS_WIN
         // work around a bug in QDesktopServices on Win32, see i-net

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list