Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrect behavior of Field Format combobox in date time widget c…
…onfig
  • Loading branch information
agiudiceandrea authored and nyalldawson committed May 24, 2020
1 parent 6466bd7 commit 788180c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/editorwidgets/qgsdatetimeeditconfig.cpp
Expand Up @@ -415,6 +415,10 @@ void QgsDateTimeEditConfig::updateFieldFormat( int idx )
{
mFieldFormatEdit->setText( format );
}
else if ( mFieldFormatEdit->text() == QgsDateTimeFieldFormatter::QT_ISO_FORMAT )
{
mFieldFormatEdit->setText( QgsDateTimeFieldFormatter::DISPLAY_FOR_ISO_FORMAT );
}

mFieldFormatEdit->setEnabled( custom );
mFieldHelpToolButton->setVisible( custom );
Expand Down

0 comments on commit 788180c

Please sign in to comment.