Commit 3d244743 authored by David Redondo's avatar David Redondo 🏎
Browse files

Set the current capture mode index at the end of the constructor of KSWidget

Move it back down to correctly update the enabled state of the decoration and
transient only checkboxes
parent a9c01acf
......@@ -70,8 +70,6 @@ KSWidget::KSWidget(const Platform::GrabModes &theGrabModes, QWidget *parent) :
mTransientWithParentAvailable = true;
}
mCaptureArea->setMinimumWidth(240);
int index = mCaptureArea->findData(Settings::captureMode());
mCaptureArea->setCurrentIndex(index >= 0 ? index : 0);
connect(mCaptureArea, qOverload<int>(&QComboBox::currentIndexChanged), this, &KSWidget::captureModeChanged);
mDelayMsec = new SmartSpinBox(this);
......@@ -170,6 +168,8 @@ KSWidget::KSWidget(const Platform::GrabModes &theGrabModes, QWidget *parent) :
mCaptureTransientOnly->setChecked(Settings::transientOnly());
mQuitAfterSaveOrCopy->setChecked(Settings::quitAfterSaveCopyExport());
mDelayMsec->setValue(Settings::captureDelay());
int index = mCaptureArea->findData(Settings::captureMode());
mCaptureArea->setCurrentIndex(index >= 0 ? index : 0);
}
int KSWidget::imagePaddingWidth() const
......
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