cloudFromDisparity(): adjusting decimation if not valid with current image size. Standalone: ask user to set other parameters to default if some were set on command line.

This commit is contained in:
matlabbe
2017-04-28 11:43:27 -04:00
parent 1ea94c0356
commit 14baca125d
4 changed files with 58 additions and 6 deletions

View File

@@ -4081,7 +4081,13 @@ void MainWindow::updateParameters(const ParametersMap & parameters)
_ui->widget_console->appendMsg(msg);
UWARN(msg.toStdString().c_str());
}
_preferencesDialog->updateParameters(parameters);
QMessageBox::StandardButton button = QMessageBox::question(this,
tr("Parameters"),
tr("Some parameters have been set on command line, do you "
"want to set all other RTAB-Map's parameters to default?"),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No);
_preferencesDialog->updateParameters(parameters, button==QMessageBox::Yes);
}
}