Use QVariant::toUrl() instead of QVariant::value<QUrl>()

This commit is contained in:
Gianluca Recchia 2018-10-31 18:37:00 +01:00 committed by Jonathan White
parent 9d106d6bfc
commit a9fa8915d9
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -173,7 +173,7 @@ namespace {
{
QUrl url;
if (var.canConvert<QUrl>())
url = var.value<QUrl>();
url = var.toUrl();
return url;
}