started adapting RsCollectionDialog to the new API of RsCollection

This commit is contained in:
csoler 2024-02-24 17:44:13 +01:00
parent 206da93d99
commit 5071656209
11 changed files with 148 additions and 166 deletions

View file

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