Index: sources/ApplicationController.cpp =================================================================== diff -u -r821bf955d0ba7e028bccfee7c04ca77cf80a0bd4 -rf688ed9f1c64a2603a6d10fbb090b257a43e1f6f --- sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision 821bf955d0ba7e028bccfee7c04ca77cf80a0bd4) +++ sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision f688ed9f1c64a2603a6d10fbb090b257a43e1f6f) @@ -128,9 +128,10 @@ // Settings - move to application thread connect(this, SIGNAL(didSettingsInit()), this, SLOT( onSettingsInit())); - connect(&_settingsWatcher, SIGNAL(finished ()), - this , SIGNAL(didSettingsUpdate())); + connect(&_settingsWatcher, SIGNAL(finished ()), + this , SLOT(onSettingsUpdate())); + // ---- Signal/Slots ADJUST_TRANSMT_MODEL_BRIDGE_CONNECTIONS(_GuiController ) ACTION_RECEIVE_MODEL_BRIDGE_CONNECTIONS(_MessageDispatcher) @@ -459,8 +460,6 @@ */ void ApplicationController::initSettings() { - PRINT_THREAD_NAME // Main Thread - // this emit guaranties that the slot will be called in the application thread // also the signal is private so it will be used internally only. emit didSettingsInit({}); @@ -474,17 +473,25 @@ */ void ApplicationController::onSettingsInit() { - PRINT_THREAD_NAME - - // has been used here to create the object in the thread that Settings is leaving in, + // 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. - Q_UNUSED(_SettingModel) + _SettingModel; QFuture mFuture = QtConcurrent::run(this, &ApplicationController::settingsInit); _settingsWatcher.setFuture(mFuture); } /*! + * \brief onSettingsUpdate + * \details when the Settings reads the .conf files and fills the MSettings emits this finished signal + * then this slot is called to notify the GuiController about the settings that being ready. + */ +void ApplicationController::onSettingsUpdate() +{ + onActionReceive(SettingsData()); +} + +/*! * \brief ApplicationController::settingsInit * \details The Settings read function is called in this method. * This callback function for the QCuncurrnent run.