Editor: Fix enum delegate setting a value on cancel undeer certain conditions

console-destruction
Sven Eberhardt 2016-08-27 21:33:25 -04:00
parent aa8289b55b
commit 949ab90fc8
1 changed files with 1 additions and 1 deletions

View File

@ -1230,7 +1230,7 @@ void C4PropertyDelegateEnum::SetModelData(QObject *aeditor, const C4PropertyPath
else
{
// No parameter. Use value.
SetOptionValue(use_path, option);
if (editor->option_changed) SetOptionValue(use_path, option);
}
editor->option_changed = false;
}