Skip to content
Snippets Groups Projects
Commit 8c15721e authored by Giovanni Di Siena's avatar Giovanni Di Siena
Browse files

Call method on view to display error message

Re #27178
parent f06fd685
No related branches found
No related tags found
No related merge requests found
......@@ -200,10 +200,10 @@ void MainWindowPresenter::notifyLoadBatchRequested(int tabIndex) {
try {
map = MantidQt::API::loadJSONFromFile(filename);
} catch (const std::runtime_error &e) {
QMessageBox::warning(
nullptr, QString(),
QString("Unable to load requested file. Please load a file of "
"appropriate format saved from the GUI."));
m_messageHandler->giveUserCritical(
"Unable to load requested file. Please load a file of "
"appropriate format saved from the GUI.",
"Error:");
}
IBatchPresenter *batchPresenter = m_batchPresenters[tabIndex].get();
Decoder decoder;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment