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
This commit is contained in:
csoler 2011-11-30 19:31:41 +00:00
parent e62008d493
commit 1b35e21ff0

View File

@ -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) ;
}