diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-28 06:54:55 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-28 06:54:55 -0400 |
commit | 8b4d502f2446c82189f3dfbcae750167b8774afc (patch) | |
tree | bf174828326857e584ff63ed04873dfa7ae8221b /qt-ui/mainwindow.cpp | |
parent | 2c0123c6772dcabd05156f3d2533267f4676ebde (diff) | |
download | subsurface-8b4d502f2446c82189f3dfbcae750167b8774afc.tar.gz |
Make progress dialog show up more reliably
Counterintuitively, setting the minimum duration to 200ms actually makes
the dialog show up while waiting for the first progress signal. I had
thought that setting it to 0 would make it show up right away, but with a
value of 0 it waits for the first progress notification and with slow
internet connections that can take quite a while (and with some git
operations no progress notification will be sent out the whole time).
So this should make the situation with the progress bar a little better.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 9feb8f684..c1f6345c2 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1828,7 +1828,7 @@ void MainWindow::showProgressBar() progressDialog = new QProgressDialog(tr("Contacting cloud service..."), tr("Cancel"), 0, 100, this); progressDialog->setWindowModality(Qt::WindowModal); - progressDialog->setMinimumDuration(0); + progressDialog->setMinimumDuration(200); progressDialogCanceled = false; connect(progressDialog, SIGNAL(canceled()), this, SLOT(cancelCloudStorageOperation())); } |