Skip to content
Snippets Groups Projects
Commit 8ddfe113 authored by Yurov, Dmitry's avatar Yurov, Dmitry
Browse files

Disable inaccessible views for different types of simulations

Redmine: #1936
parent d4a38bdf
No related branches found
No related tags found
No related merge requests found
......@@ -77,8 +77,14 @@ QStringList JobResultsPresenter::presentationList(SessionItem* item)
{
Q_ASSERT(item->modelType() == Constants::JobItemType);
return QStringList() << Constants::IntensityDataPresentation
<< Constants::SpecularDataPresentation
<< Constants::IntensityProjectionsPresentation
<< Constants::FitComparisonPresentation;
auto job_item = dynamic_cast<JobItem*>(item);
Q_ASSERT(job_item);
QStringList result;
if (job_item->defaultPresentationType() == Constants::SpecularDataPresentation)
result << Constants::SpecularDataPresentation;
else
result << Constants::IntensityDataPresentation
<< Constants::IntensityProjectionsPresentation;
return result << Constants::FitComparisonPresentation;
}
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