mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
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:
parent
e62008d493
commit
1b35e21ff0
@ -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) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user