Skip to content

Commit

Permalink
refs #4328. Load existing ADS workspaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jan 13, 2012
1 parent b7587f1 commit 208dece
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/CreateMDWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@ void CreateMDWorkspace::initLayout()
this->setWindowTitle("Create MD Workspaces");
m_uiForm.txt_merged_workspace_name->setEnabled(m_uiForm.ck_merge->isChecked());
m_uiForm.lbl_merged_name->setEnabled(m_uiForm.ck_merge->isChecked());

//Add existing ADS names into selector.
m_uiForm.workspaceSelector->clear();
typedef std::set<std::string> NameSet;
NameSet names = AnalysisDataService::Instance().getObjectNames();
NameSet::iterator it = names.begin();
while(it != names.end())
{
m_uiForm.workspaceSelector->addItem((*it).c_str());
it++;
}

}

/*
Expand Down

0 comments on commit 208dece

Please sign in to comment.