From 1646517d28eec7ea47a369f7be9747ff18a40520 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 9 Nov 2013 15:57:36 +0900 Subject: [PATCH] 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 --- qt-ui/downloadfromdivecomputer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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