Skip to content

Commit

Permalink
Ensure catalogdowndatafiles works. Refs #9084.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Mar 3, 2014
1 parent 21a90b4 commit 450540b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/MantidQt/MantidWidgets/src/CatalogHelper.cpp
@@ -1,3 +1,4 @@
#include "MantidAPI/CatalogManager.h"
#include "MantidQtMantidWidgets/CatalogHelper.h"
#include "MantidQtAPI/AlgorithmDialog.h"
#include "MantidQtAPI/InterfaceManager.h"
Expand Down Expand Up @@ -121,6 +122,10 @@ namespace MantidQt
catalogAlgorithm->setProperty("FileNames",fileNames);
catalogAlgorithm->setProperty("DownloadPath",downloadPath);

// This is temporary to ensure catalogdowndatafiles works as expected with one catalog.
auto session = Mantid::API::CatalogManager::Instance().getActiveSessions();
catalogAlgorithm->setProperty("Session",session.front()->getSessionId());

executeAsynchronously(catalogAlgorithm);
// Return a vector containing the file paths to the files to download.
return (catalogAlgorithm->getProperty("FileLocations"));
Expand Down

0 comments on commit 450540b

Please sign in to comment.