Gui: fixes DlgSettingsColorGradientImp:
* handle exception in lambda function if max <= min * fix regression of 10768fb32: a validator can be set to only one widget at a time
This commit is contained in:
@@ -315,7 +315,12 @@ void SoFCColorGradient::customize(SoFCColorBarBase* parentNode)
|
||||
};
|
||||
QObject::connect(&dlg, &Gui::Dialog::DlgSettingsColorGradientImp::colorModelChanged,
|
||||
[&] {
|
||||
applyProfile(dlg.getProfile());
|
||||
try {
|
||||
applyProfile(dlg.getProfile());
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
e.ReportException();
|
||||
}
|
||||
});
|
||||
|
||||
if (dlg.exec() != QDialog::Accepted) {
|
||||
|
||||
Reference in New Issue
Block a user