From 24ee209befa24d0ac6c1499f3f327c252a545cea Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Thu, 5 Oct 2017 22:37:28 +0200 Subject: [PATCH] dbhub: Use URL returned by server --- src/RemoteDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RemoteDatabase.cpp b/src/RemoteDatabase.cpp index 46ee57b9..f881d130 100644 --- a/src/RemoteDatabase.cpp +++ b/src/RemoteDatabase.cpp @@ -220,7 +220,7 @@ void RemoteDatabase::gotReply(QNetworkReply* reply) QJsonObject obj = json.object(); // Create or update the record in our local checkout database - QString saveFileAs = localAdd(reply->url().fileName(), reply->property("certfile").toString(), reply->url(), obj["commit_id"].toString()); + QString saveFileAs = localAdd(reply->url().fileName(), reply->property("certfile").toString(), obj["url"].toString(), obj["commit_id"].toString()); // If the name of the source file and the name we're saving as differ, we're doing an initial push. In this case, copy the source file to // the destination path to avoid redownloading it when it's first used.