Index: sources/ApplicationController.cpp =================================================================== diff -u -rf8c7febe2e4131b8c7e68fd9849027ba8596dbc6 -r472c10e72a8d278f13d2343f9c81c1def14490ff --- sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision f8c7febe2e4131b8c7e68fd9849027ba8596dbc6) +++ sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision 472c10e72a8d278f13d2343f9c81c1def14490ff) @@ -26,7 +26,6 @@ #include "GuiController.h" #include "Settings.h" #include "MSettings.h" -#include "WifiInterface.h" #include "BluetoothInterface.h" #include "VAdjustmentVersions.h" @@ -49,7 +48,7 @@ _init = true; initConnections(); - LOG_DEBUG(tr("%1 Initialized").arg(metaObject()->className())); + LOG_DEBUG(QString("%1 Initialized").arg(metaObject()->className())); return true; } @@ -526,14 +525,9 @@ */ void ApplicationController::initSettings() { - // That is enough to call to the I function here to create the object in the thread that Settings is leaving in, - // which currently is Application_Thread, since the Settings is created in that thread. - _Settings; - QFuture mFuture = QtConcurrent::run( [=]() -> int { // made the call a lambda to make sure there is no function to accidentally being called, out of thread [developer safety]. //TODO The Settings shall be the Singleton SettingsController and modify the MSettings like the others. - Storage::Settings settings; - return settings.read(); + return Storage::Settings::readConfigurations(); }); _settingsWatcher.setFuture(mFuture); } @@ -591,7 +585,7 @@ */ void ApplicationController::onPOSTWiFi(bool vPass) { if (vPass) { - _WifiInterface.doStart(); + // _WifiInterface.doStart(); // =========================================================== FIX ME } // sending the data first, therefore in the slot for the didPOST we have the vPass and the Data to decide to use the data or not. emit didPOSTWirelessData(_post.macWireless()); @@ -776,4 +770,3 @@ institutionalRequest (); // send HD the institutional record request emit didPOSTPass (_post.isDone( )); // GuiController -> GuiView : didPOSTPass(bool) } -