Change the git progress update callback signature

This way we can include additional text. This will be used in later
patches.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-03 18:13:22 -05:00
parent 8b710f4d6c
commit eea1ff6a83
4 changed files with 25 additions and 12 deletions

View file

@ -66,8 +66,10 @@
QProgressDialog *progressDialog = NULL;
bool progressDialogCanceled = false;
extern "C" int updateProgress(int percent)
extern "C" int updateProgress(int percent, const char *text)
{
if (verbose)
qDebug() << "git storage:" << percent << "% with note" << text;
if (progressDialog)
progressDialog->setValue(percent);
return progressDialogCanceled;