diff options
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index c6f487486..a86901f98 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -66,12 +66,17 @@ QProgressDialog *progressDialog = NULL; bool progressDialogCanceled = false; -extern "C" int updateProgress(int percent, const char *text) +extern "C" int updateProgress(bool reset, const char *text) { + static int percent; + + if (reset) + percent = 0; if (verbose) - qDebug() << "git storage:" << percent << "% with note" << text; + qDebug() << "git storage:" << +percent << "% (" << text << ")"; if (progressDialog) progressDialog->setValue(percent); + qApp->processEvents(); return progressDialogCanceled; } |