From ed129027461511fc084a978d8c3573fe5abd2bee Mon Sep 17 00:00:00 2001 From: Danilo Cesar Lemes de Paula Date: Sat, 22 Feb 2014 11:44:50 -0300 Subject: disable buttons while downloading Simple patch to enable/disable extra buttons while downloading. The UI should be blocked during the download. Signed-off-by: Danilo Cesar Lemes de Paula Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 87eb501cd..d8a49e7ad 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -390,6 +390,10 @@ void DownloadFromDCWidget::markChildrenAsDisabled() ui.preferDownloaded->setDisabled(true); ui.ok->setDisabled(true); ui.search->setDisabled(true); + ui.logToFile->setDisabled(true); + ui.dumpToFile->setDisabled(true); + ui.chooseLogFile->setDisabled(true); + ui.chooseDumpFile->setDisabled(true); } void DownloadFromDCWidget::markChildrenAsEnabled() @@ -402,6 +406,10 @@ void DownloadFromDCWidget::markChildrenAsEnabled() ui.ok->setDisabled(false); ui.cancel->setDisabled(false); ui.search->setDisabled(false); + ui.logToFile->setDisabled(false); + ui.dumpToFile->setDisabled(false); + ui.chooseLogFile->setDisabled(false); + ui.chooseDumpFile->setDisabled(false); } static void fillDeviceList(const char *name, void *data) -- cgit v1.2.3-70-g09d2