diff -r a1e435907f3a -r 4b95e33ee476 src/bmsapp.cpp --- a/src/bmsapp.cpp Mon Feb 07 21:28:26 2022 +0100 +++ b/src/bmsapp.cpp Fri Feb 11 12:02:09 2022 +0100 @@ -16,7 +16,7 @@ */ #include "bmsapp.h" #include "config.h" - +#include "MainWindow.h" bool Bmsapp::ensureDirectoriesExist() @@ -31,7 +31,6 @@ } return resourceDirSuccess; -// return resourceDirSuccess && createDir(PersistentSettings::getUserDir()); } @@ -53,6 +52,10 @@ readsettings(); qDebug() << "Loading Database..."; + + db = new DataBase(); + db->connectToDataBase(); + return true; } @@ -61,6 +64,7 @@ void Bmsapp::cleanup() { qDebug() << "BMSapp is cleaning up."; + writesettings(); } @@ -158,6 +162,8 @@ return 1; } + MainWindow w; + w.show(); rc = qApp->exec(); cleanup();