Changeset View
Changeset View
Standalone View
Standalone View
src/EditProfileDialog.cpp
Show First 20 Lines • Show All 1129 Lines • ▼ Show 20 Line(s) | 1125 | while (iter.hasNext()) { | |||
---|---|---|---|---|---|
1130 | 1130 | | |||
1131 | // for previewed property | 1131 | // for previewed property | ||
1132 | if (_previewedProperties.contains(static_cast<int>(property))) { | 1132 | if (_previewedProperties.contains(static_cast<int>(property))) { | ||
1133 | if (value != _previewedProperties.value(static_cast<int>(property))) { | 1133 | if (value != _previewedProperties.value(static_cast<int>(property))) { | ||
1134 | userModified = true; | 1134 | userModified = true; | ||
1135 | break; | 1135 | break; | ||
1136 | } | 1136 | } | ||
1137 | // for not-previewed property | 1137 | // for not-previewed property | ||
1138 | } else if ((value != _profile->property<QVariant>(property))) { | 1138 | // | ||
1139 | // for the Profile::KeyBindings property, if it's set in the _tempProfile | ||||
1140 | // then the user opened the edit key bindings dialog and clicked | ||||
1141 | // OK, and could have add/removed a key bindings rule | ||||
1142 | } else if (property == Profile::KeyBindings || (value != _profile->property<QVariant>(property))) { | ||||
1139 | userModified = true; | 1143 | userModified = true; | ||
1140 | break; | 1144 | break; | ||
1141 | } | 1145 | } | ||
1142 | } | 1146 | } | ||
1143 | 1147 | | |||
1144 | mButtonBox->button(QDialogButtonBox::Apply)->setEnabled(userModified); | 1148 | mButtonBox->button(QDialogButtonBox::Apply)->setEnabled(userModified); | ||
1145 | } | 1149 | } | ||
1146 | 1150 | | |||
▲ Show 20 Lines • Show All 629 Lines • Show Last 20 Lines |