Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
8c15721e
Commit
8c15721e
authored
5 years ago
by
Giovanni Di Siena
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp
+4
-4
4 additions, 4 deletions
.../ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp
with
4 additions
and
4 deletions
qt/scientific_interfaces/ISISReflectometry/GUI/MainWindow/MainWindowPresenter.cpp
+
4
−
4
View file @
8c15721e
...
...
@@ -200,10 +200,10 @@ void MainWindowPresenter::notifyLoadBatchRequested(int tabIndex) {
try
{
map
=
MantidQt
::
API
::
loadJSONFromFile
(
filename
);
}
catch
(
const
std
::
runtime_error
&
e
)
{
QM
essage
Box
::
warning
(
nullptr
,
QString
(),
QString
(
"Unable to load requested file. Please load a file of "
"
appropriate format saved from the GUI."
)
);
m_m
essage
Handler
->
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment