Commit e86fb930 authored by Igor Kushnir's avatar Igor Kushnir
Browse files

SourceFormatterSettings: emit changed() when a checkbox is toggled

Connections equivalent to the ones added in this commit were
accidentally removed in 47f298ae.
The added comment is a modified copy of the comment inside
SourceFormatterSettings::somethingChanged() also removed in that commit.
parent 832bd481
Pipeline #224140 passed with stage
in 36 minutes and 28 seconds
......@@ -21,6 +21,11 @@ SourceFormatterSettings::SourceFormatterSettings(QWidget* parent)
{
setupUi(this);
// Widgets are managed manually, so we must notify ConfigDialog when something
// changes. Otherwise it will not enable "Apply" button and won't call apply().
for (auto* checkbox : {chkKateOverrideIndentation, chkKateModelines}) {
connect(checkbox, &QCheckBox::toggled, this, &SourceFormatterSettings::changed);
}
connect(formatterSelectionEdit, &SourceFormatterSelectionEdit::changed,
this, &SourceFormatterSettings::changed);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment