@@ -344,6 +344,7 @@ void DlgPrefLibrary::slotUpdate() {
344344 m_dateFormat = m_pConfig->getValue (
345345 kDateFormatConfigKey ,
346346 BaseTrackTableModel::kDateFormatDefault );
347+ qWarning () << " slotUpdate, dateformat:" << m_dateFormat;
347348
348349 // Determine the matching preset or custom
349350 BaseTrackTableModel::DateFormat preset = BaseTrackTableModel::DateFormat::Custom;
@@ -357,16 +358,19 @@ void DlgPrefLibrary::slotUpdate() {
357358 preset = BaseTrackTableModel::DateFormat::RegionalLong;
358359 } else {
359360 m_lastCustomDateFormat = m_dateFormat;
361+ qWarning () << " -> type: Custom" ;
362+ qWarning () << " -> store last custom format:" << m_lastCustomDateFormat;
360363 }
361364
362365 int dateIndex = comboBox_dateFormat->findData (QVariant::fromValue (preset));
366+ qWarning () << " -> idx:" << dateIndex;
363367 if (dateIndex != -1 ) {
368+ qWarning () << " -> setCurrIdx" ;
364369 const QSignalBlocker signalBlocker (comboBox_dateFormat);
365370 comboBox_dateFormat->setCurrentIndex (dateIndex);
366371 slotDateFormatIndexChanged (dateIndex);
367372 }
368373
369-
370374 // Ensure the format is applied to the library view on startup/load
371375 BaseTrackTableModel::setDateFormat (m_dateFormat);
372376 updateDateFormatPreview ();
@@ -781,14 +785,17 @@ void DlgPrefLibrary::setSeratoMetadataEnabled(bool shouldSyncTrackMetadata) {
781785}
782786
783787void DlgPrefLibrary::slotDateFormatIndexChanged (int index) {
788+ qWarning () << " slotDateFormatIndexChanged" << index;
784789 auto type = comboBox_dateFormat->itemData (index)
785790 .value <BaseTrackTableModel::DateFormat>();
786791 QString format;
787792 if (type == BaseTrackTableModel::DateFormat::Custom) {
793+ qWarning () << " -> Custom, format:" << m_lastCustomDateFormat;
788794 // Enable editing for Custom and set the custom format string
789795 comboBox_dateFormat->setEditable (true );
790796 comboBox_dateFormat->setEditText (m_lastCustomDateFormat);
791797 format = m_lastCustomDateFormat;
798+ qWarning () << " -> box text: " << comboBox_dateFormat->currentText ();
792799 } else {
793800 // Disable editing for Presets
794801 comboBox_dateFormat->setEditable (false );
@@ -815,6 +822,7 @@ void DlgPrefLibrary::slotDateFormatIndexChanged(int index) {
815822}
816823
817824void DlgPrefLibrary::slotDateFormatChanged (const QString& text) {
825+ qWarning () << " slotDateFormatChanged, text:" << text;
818826 m_dateFormat = text;
819827 // If not editable, we are in a Preset mode, but 'text' might be the Item
820828 // Label (e.g. "Native ...") depending on how this was called. However, our
0 commit comments