Skip to content

Commit

Permalink
Remove unnecessary returns. Refs #8938.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Mar 13, 2014
1 parent e114fac commit 1502563
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Code/Mantid/MantidQt/CustomDialogs/src/CatalogPublishDialog.cpp
Expand Up @@ -120,12 +120,16 @@ namespace MantidQt
if (m_uiForm.dataSelector->getFullFilePath().isEmpty())
{
QMessageBox::critical(this,"Error in catalog publishing.","No file specified.");
return;
}
QMessageBox::critical(this,"Error in catalog publishing.",m_uiForm.dataSelector->getProblem());
return;
else
{
QMessageBox::critical(this,"Error in catalog publishing.",m_uiForm.dataSelector->getProblem());
}
}
else
{
AlgorithmDialog::accept();
}
AlgorithmDialog::accept();
}
}
}

0 comments on commit 1502563

Please sign in to comment.