Commit a3d685c9 authored by Allen Winter's avatar Allen Winter Committed by Volker Krause
Browse files

add toString() as needed to fix Qt4 build

QVariant::toString() and QUrl::toString(), specifically.
parent 1e71fd16
......@@ -88,7 +88,7 @@ QDebug operator<<(QDebug debug, SurveyTargetExpression* expr)
switch (expr->type()) {
case SurveyTargetExpression::Value:
debug << expr->value();
debug << expr->value().toString(); //toString() is needed for Qt4 support
break;
case SurveyTargetExpression::ScalarElement:
debug.nospace() << expr->source() << "." << expr->sourceElement();
......
......@@ -299,7 +299,7 @@ void ProviderPrivate::submitFinished()
const auto redirectTarget = reply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl();
if (redirectTarget.isValid()) {
if (++redirectCount >= 20) {
qCWarning(Log) << "Redirect loop on" << reply->url().resolved(redirectTarget);
qCWarning(Log) << "Redirect loop on" << reply->url().resolved(redirectTarget).toString();
return;
}
submit(reply->url().resolved(redirectTarget));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment