summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-03 18:13:22 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-04 14:17:45 -0700
commiteea1ff6a83a318d7749110baa81c249a6faea8ef (patch)
tree05867047169d211f85815b3ecb577d74c08c99b6 /desktop-widgets/mainwindow.cpp
parent8b710f4d6cde00bf598031fafa9e3f1d8c2708a5 (diff)
downloadsubsurface-eea1ff6a83a318d7749110baa81c249a6faea8ef.tar.gz
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>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index df0190e10..ca78b82af 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -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;