mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
started adapting RsCollectionDialog to the new API of RsCollection
This commit is contained in:
parent
206da93d99
commit
5071656209
11 changed files with 148 additions and 166 deletions
|
@ -28,12 +28,9 @@ bool RsUrlHandler::openUrl(const QUrl& url)
|
|||
{
|
||||
if(url.scheme() == QString("file") && url.toLocalFile().endsWith("."+RsCollection::ExtensionString))
|
||||
{
|
||||
RsCollection collection ;
|
||||
if(collection.load(url.toLocalFile()))
|
||||
{
|
||||
collection.downloadFiles() ;
|
||||
return true;
|
||||
}
|
||||
RsCollection::RsCollectionErrorCode err;
|
||||
RsCollection(url.toLocalFile(),err).downloadFiles() ;
|
||||
return true;
|
||||
}
|
||||
return QDesktopServices::openUrl(url) ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue