Fix bug that prevented aquireing new items

Add save button to master that saves json file
Remove autosave on quit
This commit is contained in:
uvos 2021-10-02 14:12:58 +02:00
parent 5fb9ca7cc0
commit 954eec754c
14 changed files with 61 additions and 18 deletions

View file

@ -118,6 +118,7 @@ int main(int argc, char *argv[])
MainWindow w(&mainObject);
QObject::connect(&mainObject.micro, SIGNAL(textRecived(QString)), &w, SLOT(changeHeaderLableText(QString)));
QObject::connect(&w, &MainWindow::sigBrodcast, &mainObject, &MainObject::sendJson);
QObject::connect(&w, &MainWindow::sigSave, &mainObject, &MainObject::storeToDisk);
QObject::connect(&w, &MainWindow::createdItem, &mainObject.items, &ItemStore::addItem);
if(!mainObject.micro.connected()) w.changeHeaderLableText("No io debug only!");
@ -125,7 +126,8 @@ int main(int argc, char *argv[])
int retVal = a.exec();
if(masterIODevice) delete masterIODevice;
if(masterIODevice)
delete masterIODevice;
return retVal;
}