mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue