Skip to content

Commit

Permalink
Fix incorrect behavior of Widget Display combobox in date time widget…
Browse files Browse the repository at this point in the history
… config
  • Loading branch information
agiudiceandrea authored and nyalldawson committed May 24, 2020
1 parent bc7bce8 commit 6466bd7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/gui/editorwidgets/qgsdatetimeeditconfig.cpp
Expand Up @@ -453,7 +453,14 @@ void QgsDateTimeEditConfig::displayFormatChanged( int idx )
}
if ( !custom )
{
mDisplayFormatEdit->setText( mFieldFormatEdit->text() );
if ( mFieldFormatComboBox->currentData() == QgsDateTimeFieldFormatter::QT_ISO_FORMAT )
{
mDisplayFormatEdit->setText( QgsDateTimeFieldFormatter::DISPLAY_FOR_ISO_FORMAT );
}
else
{
mDisplayFormatEdit->setText( mFieldFormatEdit->text() );
}
}
}

Expand Down

0 comments on commit 6466bd7

Please sign in to comment.