Commit 17b93e26 authored by Sven Langkamp's avatar Sven Langkamp

make sure gradiet edtior controls are initialised

parent 2e6e5d1a
......@@ -41,6 +41,10 @@ KisAutogradient::KisAutogradient(KisAutogradientResource* gradient, QWidget *par
setupUi(this);
setWindowTitle(caption);
gradientSlider->setGradientResource(m_autogradientResource);
KoGradientSegment* segment = gradientSlider->selectedSegment();
if (segment) {
slotSelectedSegment(segment);
}
connect(gradientSlider, SIGNAL(sigSelectedSegment(KoGradientSegment*)), SLOT(slotSelectedSegment(KoGradientSegment*)));
connect(gradientSlider, SIGNAL(sigChangedSegment(KoGradientSegment*)), SLOT(slotChangedSegment(KoGradientSegment*)));
......
Markdown is supported
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