1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OP-1458 Restore to original input rate values when cancel is clicked

This commit is contained in:
Stefan Karlsson 2014-08-31 15:47:13 +02:00
parent 8614489467
commit 644d35fa41

View File

@ -415,7 +415,10 @@ void ConfigInputWidget::disableWizardButton(int value)
void ConfigInputWidget::wzCancel()
{
dimOtherControls(false);
manualCommandObj->setMetadata(manualCommandObj->getDefaultMetadata());
// Restore original input update rate.
restoreMdata();
ui->stackedWidget->setCurrentIndex(0);
if (wizardStep != wizardNone) {