Skip to content

Commit

Permalink
Do not try to add no data
Browse files Browse the repository at this point in the history
Refs #10802
  • Loading branch information
DanNixon committed Jan 23, 2015
1 parent 52fbe4a commit 85a6176
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/DataComparison.cpp
Expand Up @@ -93,6 +93,10 @@ void DataComparison::addData()
{
QString dataName = m_uiForm.dsData->getCurrentDataName();

// Do nothing if the data is not found
if(!AnalysisDataService::Instance().doesExist(dataName.toStdString()))
return;

m_uiForm.twCurrentData->blockSignals(true);

// Append a new row to the data table
Expand Down

0 comments on commit 85a6176

Please sign in to comment.