mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-20 07:00:44 +02:00
gui: Set progressDialog to nullptr
This commit is contained in:
parent
c7cfd20a77
commit
d2ae6be80f
@ -1341,6 +1341,7 @@ void BitcoinGUI::showProgress(const QString &title, int nProgress)
|
||||
if (progressDialog) {
|
||||
progressDialog->close();
|
||||
progressDialog->deleteLater();
|
||||
progressDialog = nullptr;
|
||||
}
|
||||
} else if (progressDialog) {
|
||||
progressDialog->setValue(nProgress);
|
||||
|
@ -316,6 +316,7 @@ void WalletView::showProgress(const QString &title, int nProgress)
|
||||
if (progressDialog) {
|
||||
progressDialog->close();
|
||||
progressDialog->deleteLater();
|
||||
progressDialog = nullptr;
|
||||
}
|
||||
} else if (progressDialog) {
|
||||
if (progressDialog->wasCanceled()) {
|
||||
|
Loading…
Reference in New Issue
Block a user