Skip to content
Permalink
Browse files

Fix incorrect behavior of Widget Display combobox in date time widget…

… config
  • Loading branch information
agiudiceandrea authored and nyalldawson committed May 24, 2020
1 parent bc7bce8 commit 6466bd73078440015fcd95a46308c61c7888e377
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/gui/editorwidgets/qgsdatetimeeditconfig.cpp
@@ -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() );
}
}
}

0 comments on commit 6466bd7

Please sign in to comment.
You can’t perform that action at this time.