mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04: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
1 changed files with 4 additions and 3 deletions
|
@ -29,11 +29,12 @@ bool RsUrlHandler::openUrl(const QUrl& url)
|
||||||
{
|
{
|
||||||
if(url.scheme() == QString("file") && url.toLocalFile().endsWith("."+RsCollectionFile::ExtensionString))
|
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) ;
|
return QDesktopServices::openUrl(url) ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue