Give git progress dialog a chance to actually display something

The UI only runs when the main thread pauses, but the main thread is busy
doing the git update.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-09 08:19:11 -07:00
parent d0754138a4
commit 37e08d5e25

View file

@ -62,6 +62,7 @@ extern "C" int updateProgress(int percent)
{ {
if (progressDialog) if (progressDialog)
progressDialog->setValue(percent); progressDialog->setValue(percent);
qApp->processEvents();
return progressDialogCanceled; return progressDialogCanceled;
} }