aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-09 15:57:36 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-09 15:58:57 +0900
commit1646517d28eec7ea47a369f7be9747ff18a40520 (patch)
treeaf7bb2c0fc8f8eeaaf8c9ca2fd20c58fd9a21326 /qt-ui/downloadfromdivecomputer.cpp
parent7ba55660732192666f0d846906b4e8171a90fee8 (diff)
downloadsubsurface-1646517d28eec7ea47a369f7be9747ff18a40520.tar.gz
After done with the DC download dialog, ensure it's in its original state
So in case the OK button was relabeled to 'Retry', relabel it back to OK. Also, 'Retry' should be capitalized. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index 72ba7933d..be9c8e337 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -106,6 +106,7 @@ void DownloadFromDCWidget::updateState(states state)
&& state == CANCELLING) {
timer->stop();
reject();
+ ui.ok->setText(tr("OK"));
}
// the cancelation process is finished
@@ -122,6 +123,7 @@ void DownloadFromDCWidget::updateState(states state)
timer->stop();
ui.progressBar->setValue(100);
markChildrenAsEnabled();
+ ui.ok->setText(tr("OK"));
accept();
}
@@ -139,7 +141,7 @@ void DownloadFromDCWidget::updateState(states state)
markChildrenAsEnabled();
ui.progressBar->hide();
- ui.ok->setText(tr("retry"));
+ ui.ok->setText(tr("Retry"));
}
// properly updating the widget state