MainWindow: Fixed working directory warning in monitoring mode.

This commit is contained in:
matlabbe
2016-01-12 15:06:52 -05:00
parent f10c415e48
commit 9a0a1fbcbe

View File

@@ -2564,7 +2564,9 @@ void MainWindow::applyPrefSettings(const rtabmap::ParametersMap & parameters, bo
if(_state != kIdle && parametersModified.size()) if(_state != kIdle && parametersModified.size())
{ {
if(parametersModified.erase(Parameters::kRtabmapWorkingDirectory())) if(parametersModified.erase(Parameters::kRtabmapWorkingDirectory()) &&
_state != kMonitoring &&
_state != kMonitoringPaused)
{ {
QMessageBox::information(this, tr("Working memory changed"), tr("The working directory can't be changed while the detector is running. This will be applied when the detector will stop.")); QMessageBox::information(this, tr("Working memory changed"), tr("The working directory can't be changed while the detector is running. This will be applied when the detector will stop."));
} }