diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-09-25 00:59:05 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-25 09:56:51 -0700 |
commit | 117de891c7a67d1a2d5cd3975526608a6456295d (patch) | |
tree | 38c8ed33e488ed38525c002aac0c865656966d36 /qt-ui | |
parent | f5176d908d5fbbf6af2696b56b3e9005165c91e0 (diff) | |
download | subsurface-117de891c7a67d1a2d5cd3975526608a6456295d.tar.gz |
Disable update firmware button on any other action
Firmware updates can only be done on a newly opened device.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/configuredivecomputerdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index eb790e6d3..f42680bf8 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -722,6 +722,8 @@ void ConfigureDiveComputerDialog::readSettings() ui.progressBar->setValue(0); ui.progressBar->setFormat("%p%"); ui.progressBar->setTextVisible(true); + // Fw update is no longer a option, needs to be done on a untouched device + ui.updateFirmwareButton->setEnabled(false); config->readSettings(&device_data); } @@ -1098,6 +1100,8 @@ void ConfigureDiveComputerDialog::on_restoreBackupButton_clicked() QString restorePath = QFileDialog::getOpenFileName(this, tr("Restore dive computer settings"), filename, tr("Backup files (*.xml)")); if (!restorePath.isEmpty()) { + // Fw update is no longer a option, needs to be done on a untouched device + ui.updateFirmwareButton->setEnabled(false); if (!config->restoreXMLBackup(restorePath, deviceDetails)) { QMessageBox::critical(this, tr("XML restore error"), tr("An error occurred while restoring the backup file.\n%1") |