From 1b35e21ff0dcf61c54ce9365f287060df1f7720d Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 30 Nov 2011 19:31:41 +0000 Subject: [PATCH] 2 bug fixes (by AsamK) to make rscollection files compatible with utf8 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4702 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/common/RsUrlHandler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/common/RsUrlHandler.cpp b/retroshare-gui/src/gui/common/RsUrlHandler.cpp index 47b757446..e2c3cd092 100644 --- a/retroshare-gui/src/gui/common/RsUrlHandler.cpp +++ b/retroshare-gui/src/gui/common/RsUrlHandler.cpp @@ -29,11 +29,12 @@ bool RsUrlHandler::openUrl(const QUrl& url) { if(url.scheme() == QString("file") && url.toLocalFile().endsWith("."+RsCollectionFile::ExtensionString)) { - try + RsCollectionFile collection ; + if(collection.load(url.toLocalFile())) { - RsCollectionFile(url.toLocalFile()).downloadFiles() ; + collection.downloadFiles() ; + return true; } - return true; } return QDesktopServices::openUrl(url) ; }