Skip to content
Snippets Groups Projects
Commit 6858acb4 authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Grey out properties of read only (linked) configurations

parent f92ed3e9
No related branches found
No related tags found
1 merge request!100Scenario Manager: auto reload on changes from disk
Pipeline #20163 failed
This commit is part of merge request !100. Comments created here will be created in the context of that merge request.
......@@ -335,7 +335,7 @@ DetailedApplicationView::showApplicationInstance(ApplicationInstancePtr appInsta
QtProperty* appInstanceTopItem = variantManager->addProperty(
QtVariantPropertyManager::groupTypeId(), QLatin1String("ApplicationInstance"));
if (!appInstance->isConfigWritable())
if (!appInstance->isConfigWritable() || appInstance->isReadOnly())
{
appInstanceTopItem->setEnabled(false);
}
......@@ -588,7 +588,7 @@ DetailedApplicationView::showScenario(ScenarioPtr scenario)
QtProperty* scenarioTopItem = variantManager->addProperty(
QtVariantPropertyManager::groupTypeId(), QLatin1String("Scenario"));
if (!scenario->isScenarioFileWriteable())
if (!scenario->isScenarioFileWriteable() || scenario->isReadOnly())
{
scenarioTopItem->setEnabled(false);
}
......
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