(fw+cpn) libsim not loading models, set mod on new lbl
This commit is contained in:
@@ -1633,12 +1633,14 @@ void MdiChild::modelSave()
|
|||||||
void MdiChild::labelAdd()
|
void MdiChild::labelAdd()
|
||||||
{
|
{
|
||||||
labelsListModel->insertRow(0);
|
labelsListModel->insertRow(0);
|
||||||
|
setWindowModified(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MdiChild::labelDelete()
|
void MdiChild::labelDelete()
|
||||||
{
|
{
|
||||||
int row = ui->lstLabels->selectionModel()->currentIndex().row();
|
int row = ui->lstLabels->selectionModel()->currentIndex().row();
|
||||||
labelsListModel->removeRow(row);
|
labelsListModel->removeRow(row);
|
||||||
|
setWindowModified(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MdiChild::modelLabelsChanged()
|
void MdiChild::modelLabelsChanged()
|
||||||
|
|||||||
@@ -946,7 +946,7 @@ bool ModelsList::loadYaml()
|
|||||||
// Scan all models in folder
|
// Scan all models in folder
|
||||||
DIR moddir;
|
DIR moddir;
|
||||||
FILINFO finfo;
|
FILINFO finfo;
|
||||||
if (f_opendir(&moddir, PATH_SEPARATOR MODELS_PATH) == FR_OK) {
|
if (f_opendir(&moddir, MODELS_PATH) == FR_OK) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
FRESULT res = f_readdir(&moddir, &finfo);
|
FRESULT res = f_readdir(&moddir, &finfo);
|
||||||
if (res != FR_OK || finfo.fname[0] == 0) break;
|
if (res != FR_OK || finfo.fname[0] == 0) break;
|
||||||
|
|||||||
Reference in New Issue
Block a user