diff --git a/src/Wima/WimaPlaner.cc b/src/Wima/WimaPlaner.cc index 53c5037d4b1955569f0aaf1b8e04373600a9275f..77fdd0211fe45d66b7fb2292574fd4c55f530d8d 100644 --- a/src/Wima/WimaPlaner.cc +++ b/src/Wima/WimaPlaner.cc @@ -61,10 +61,8 @@ WimaPlaner::WimaPlaner(QObject *parent) #endif // NemoInterface - connect(&this->_nemoInterface, &NemoInterface::progressChanged, [this] { - this->_measurementArea.setProgress(this->_nemoInterface.progress()); - this->_update(); - }); + connect(&this->_nemoInterface, &NemoInterface::progressChanged, this, + &WimaPlaner::nemoInterfaceProgressChangedHandler); // StateMachine connect(this->_stateMachine.get(), &StateMachine::upToDateChanged, this, @@ -558,6 +556,11 @@ void WimaPlaner::missionControllerMissionItemCountChangedHandler() { missionControllerVisualItemsChangedHandler(); } +void WimaPlaner::nemoInterfaceProgressChangedHandler() { + this->_measurementArea.setProgress(this->_nemoInterface.progress()); + this->_update(); +} + void WimaPlaner::saveToCurrent() { saveToFile(_currentFile); } void WimaPlaner::saveToFile(const QString &filename) { diff --git a/src/Wima/WimaPlaner.h b/src/Wima/WimaPlaner.h index f8f7e788b6ddb319ac00dab9b7f4731f248a9b99..c57d6238a657fee0fa7c47865b6be30e2b39d31a 100644 --- a/src/Wima/WimaPlaner.h +++ b/src/Wima/WimaPlaner.h @@ -139,6 +139,7 @@ private slots: void missionControllerWaypointPathChangedHandler(); void missionControllerNewItemsFromVehicleHandler(); void missionControllerMissionItemCountChangedHandler(); + void nemoInterfaceProgressChangedHandler(); #ifndef NDEBUG void autoLoadMission(void);