Added PaletteFilenameCombo sort

This commit is contained in:
Michel Mastriani 2020-04-19 00:29:01 -03:00
parent f54325dfd2
commit 17c6f29524
3 changed files with 5 additions and 2 deletions

View File

@ -217,8 +217,8 @@ win32 {
macx { macx {
QMAKE_MAC_SDK = macosx10.14 QMAKE_MAC_SDK = macosx10.14
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10
QMAKE_CXXFLAGS += -mmacosx-version-min=10.9 -arch x86_64 QMAKE_CXXFLAGS += -mmacosx-version-min=10.10 -arch x86_64
QMAKE_CXXFLAGS += -stdlib=libc++ QMAKE_CXXFLAGS += -stdlib=libc++
} }

View File

@ -85,6 +85,7 @@ size_t FractoriumEmberController<T>::InitPaletteList(const QString& s)
} }
} }
m_Fractorium->ui.PaletteFilenameCombo->model()->sort(0);
return m_PaletteList->Size(); return m_PaletteList->Size();
} }

View File

@ -58,6 +58,8 @@ PaletteEditor::PaletteEditor(QWidget* p) :
ui->PaletteFilenameCombo->addItem(info.fileName()); ui->PaletteFilenameCombo->addItem(info.fileName());
} }
ui->PaletteFilenameCombo->model()->sort(0);
if (ui->PaletteFilenameCombo->count() > 0) if (ui->PaletteFilenameCombo->count() > 0)
m_CurrentPaletteFilePath = ui->PaletteFilenameCombo->itemText(0).toStdString(); m_CurrentPaletteFilePath = ui->PaletteFilenameCombo->itemText(0).toStdString();
} }