Skip to content

Commit

Permalink
Fix #26411 Don't disable inspector controls based on value difference
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jul 30, 2014
1 parent f9fb8bf commit 370c9d1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mscore/inspector/inspectorBase.cpp
Expand Up @@ -271,11 +271,11 @@ void InspectorBase::checkDifferentValues(const InspectorItem& ii)
if (valuesAreDifferent)
break;
}
ii.w->setEnabled(!valuesAreDifferent);
if (ii.r)
ii.r->setEnabled(valuesAreDifferent);
ii.w->setStyleSheet( valuesAreDifferent ? "* { color: gray }" : "");
}
else {

//deal with reset if only one element, or if values are the same
if (!valuesAreDifferent){
PropertyStyle styledValue = inspector->el().front()->propertyStyle(ii.t);
bool reset;
if (styledValue == PropertyStyle::STYLED) {
Expand All @@ -292,6 +292,10 @@ void InspectorBase::checkDifferentValues(const InspectorItem& ii)
if (ii.r)
ii.r->setEnabled(reset);
}
else {
if (ii.r)
ii.r->setEnabled(true);
}
}

//---------------------------------------------------------
Expand Down

0 comments on commit 370c9d1

Please sign in to comment.