Skip to content

Commit

Permalink
Re #11533 Run PlotAsymmetryByLogValue asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed Apr 21, 2015
1 parent 84cec0d commit a30af8a
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -6,6 +6,8 @@
#include "MantidQtCustomInterfaces/Muon/MuonAnalysisHelper.h"
#include "MantidQtAPI/AlgorithmInputHistory.h"

#include <Poco/ActiveResult.h>

#include <QApplication>
#include <QFileInfo>
#include <QDir>
Expand Down Expand Up @@ -87,7 +89,13 @@ namespace CustomInterfaces
}

alg->setPropertyValue("OutputWorkspace", "__NotUsed");
alg->execute();

// Execute async so we can show progress bar
Poco::ActiveResult<bool> result(alg->executeAsync());
while( !result.available() )
{
QCoreApplication::processEvents();
}

m_loadedData = alg->getProperty("OutputWorkspace");

Expand Down

0 comments on commit a30af8a

Please sign in to comment.