Skip to content

Commit

Permalink
Update src/gui/settings/qgssettingseditorwidgetwrapperimpl.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <[email protected]>
  • Loading branch information
3nids and m-kuhn committed Oct 7, 2024
1 parent 1df584d commit 050e57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/settings/qgssettingseditorwidgetwrapperimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ bool QgsSettingsStringComboBoxWrapper::setWidgetValue( const QString &value ) co

void QgsSettingsStringComboBoxWrapper::enableAutomaticUpdatePrivate()
{
QObject::connect( this->mEditor, &QComboBox::currentTextChanged, this, [ = ]( const QString & currentText )
QObject::connect( mEditor, &QComboBox::currentTextChanged, this, [ = ]( const QString & currentText )
{
QString textValue = currentText;
if ( mMode == Mode::Data )
textValue = mEditor->currentData().toString();
this->mSetting->setValue( textValue, this->mDynamicKeyPartList );
mSetting->setValue( textValue, mDynamicKeyPartList );
} );
}

Expand Down

0 comments on commit 050e57a

Please sign in to comment.