aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletview.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-22 21:32:51 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-22 22:04:27 +0300
commit4935ac583bbdc289dd31a1caae3d711edef742b6 (patch)
treeeebabb6c2aaafc55893c5f35ea00c35b29bb8839 /src/qt/walletview.cpp
parent75850106aeecfed1d2dc16d8a67ec210c5826a47 (diff)
qt: Improve GUI responsiveness
QProgressDialog estimates the time the operation will take (based on time for steps), and only shows itself if that estimate is beyond minimumDuration. The default minimumDuration value is 4 seconds, and it could make users think that the GUI is frozen.
Diffstat (limited to 'src/qt/walletview.cpp')
-rw-r--r--src/qt/walletview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp
index 67cc42725b..62bf706ade 100644
--- a/src/qt/walletview.cpp
+++ b/src/qt/walletview.cpp
@@ -330,7 +330,6 @@ void WalletView::showProgress(const QString &title, int nProgress)
progressDialog = new QProgressDialog(title, tr("Cancel"), 0, 100);
GUIUtil::PolishProgressDialog(progressDialog);
progressDialog->setWindowModality(Qt::ApplicationModal);
- progressDialog->setMinimumDuration(0);
progressDialog->setAutoClose(false);
progressDialog->setValue(0);
} else if (nProgress == 100) {