Skip to content

Commit 788180c

Browse files
agiudiceandreanyalldawson
authored andcommittedMay 24, 2020
Fix incorrect behavior of Field Format combobox in date time widget config
1 parent 6466bd7 commit 788180c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/gui/editorwidgets/qgsdatetimeeditconfig.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ void QgsDateTimeEditConfig::updateFieldFormat( int idx )
415415
{
416416
mFieldFormatEdit->setText( format );
417417
}
418+
else if ( mFieldFormatEdit->text() == QgsDateTimeFieldFormatter::QT_ISO_FORMAT )
419+
{
420+
mFieldFormatEdit->setText( QgsDateTimeFieldFormatter::DISPLAY_FOR_ISO_FORMAT );
421+
}
418422

419423
mFieldFormatEdit->setEnabled( custom );
420424
mFieldHelpToolButton->setVisible( custom );

0 commit comments

Comments
 (0)
Please sign in to comment.