From 644d35fa41f8b432f0e4d41c82fe1c0693946cc6 Mon Sep 17 00:00:00 2001 From: Stefan Karlsson Date: Sun, 31 Aug 2014 15:47:13 +0200 Subject: [PATCH] OP-1458 Restore to original input rate values when cancel is clicked --- ground/openpilotgcs/src/plugins/config/configinputwidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp index fa127edc8..9bdf7b6dc 100644 --- a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp @@ -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) {