diff --git a/modules/gui/src/remote_loader.cc b/modules/gui/src/remote_loader.cc index cb5ac4f68ab3023e6dbae88af1badaa2012632c3..559a1c670c8267d48b3d18a001b7ccb26e2209ae 100644 --- a/modules/gui/src/remote_loader.cc +++ b/modules/gui/src/remote_loader.cc @@ -18,6 +18,7 @@ //------------------------------------------------------------------------------ #include <vector> +#include <QString> #include <QSettings> #include <QNetworkReply> #include <QHBoxLayout> @@ -139,7 +140,20 @@ void RemoteLoader::Clicked() this->BuildMenu(); if(!line_edit_->text().isEmpty() && site_actions_->checkedAction()){ RemoteSiteLoader* loader = FileLoader::GetLoaderManager()->GetRemoteSiteLoader(site_actions_->checkedAction()->text()); - QNetworkReply* network_reply = loader->ById(line_edit_->text()); + + QString text = line_edit_->text(); + QString id = text; + QString selection = ""; + int pos = text.indexOf('['); + if(pos >= 0){ + id = text.left(pos); + selection = text.right(text.size()-(pos+1)); + pos = selection.lastIndexOf(']'); + if(pos>=0){ + selection = selection.left(pos); + } + } + QNetworkReply* network_reply = loader->ById(id,selection); if(network_reply){ progress_bar_->reset(); connect(network_reply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(UpdateProgress(qint64,qint64)));