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>
This commit is contained in:
parent
7ba5566073
commit
1646517d28
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user