From aec0639e66b9b1d281962678792d0f60cdeedddd Mon Sep 17 00:00:00 2001 From: dlktdr Date: Mon, 5 Sep 2022 21:23:42 -0700 Subject: [PATCH] (fw+cpn) libsim not loading models, set mod on new lbl --- companion/src/mdichild.cpp | 2 ++ radio/src/storage/modelslist.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index c7d49d698..a2048b1dd 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -1633,12 +1633,14 @@ void MdiChild::modelSave() void MdiChild::labelAdd() { labelsListModel->insertRow(0); + setWindowModified(true); } void MdiChild::labelDelete() { int row = ui->lstLabels->selectionModel()->currentIndex().row(); labelsListModel->removeRow(row); + setWindowModified(true); } void MdiChild::modelLabelsChanged() diff --git a/radio/src/storage/modelslist.cpp b/radio/src/storage/modelslist.cpp index 9b72ffbd7..231050ab9 100644 --- a/radio/src/storage/modelslist.cpp +++ b/radio/src/storage/modelslist.cpp @@ -946,7 +946,7 @@ bool ModelsList::loadYaml() // Scan all models in folder DIR moddir; FILINFO finfo; - if (f_opendir(&moddir, PATH_SEPARATOR MODELS_PATH) == FR_OK) { + if (f_opendir(&moddir, MODELS_PATH) == FR_OK) { for (;;) { FRESULT res = f_readdir(&moddir, &finfo); if (res != FR_OK || finfo.fname[0] == 0) break;