summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>2014-02-22 11:44:50 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-26 09:00:19 -0800
commited129027461511fc084a978d8c3573fe5abd2bee (patch)
tree4c14c618052a300e6ffe564c8d7e3d5d3d3838e1 /qt-ui
parent69bf64793cc0b80dfcd5847465eabbc3ed3ff6bd (diff)
downloadsubsurface-ed129027461511fc084a978d8c3573fe5abd2bee.tar.gz
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 <danilo.eu@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp8
1 files changed, 8 insertions, 0 deletions
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)