Skip to content

Commit

Permalink
Merge pull request mantidproject#17749 from mantidproject/17748_rever…
Browse files Browse the repository at this point in the history
…t_mantid_dock_fix

Bring back old delete behaviour for Mantid Dock
  • Loading branch information
quantumsteve authored Oct 10, 2016
2 parents 79012a6 + 7572b8d commit c46a67d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MantidPlot/src/Mantid/MantidUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@ void MantidUI::saveNexusWorkspace() { executeSaveNexus(); }
@param workspaceName :: Name of the workspace to delete
*/
void MantidUI::deleteWorkspace(const QString &workspaceName) {
auto &ads = Mantid::API::AnalysisDataService::Instance();
ads.remove(workspaceName.toStdString());
auto alg = createAlgorithm("DeleteWorkspace");
alg->setLogging(false);
alg->setPropertyValue("Workspace", workspaceName.toStdString());
executeAlgorithmAsync(alg);
}

/**
Expand Down

0 comments on commit c46a67d

Please sign in to comment.