Fix compile with -DQT_NO_URL_CAST_FROM_STRING

parent 72362cda
......@@ -131,7 +131,7 @@ bool Upload::adjustNewstuffFile(const Package &package)
for ( int i = 0; i < int(regions.length()); ++i ) {
QDomNode node = regions.item( i );
if (!node.namedItem("payload").isNull()) {
QUrl url = node.namedItem("payload").toElement().text();
QUrl url(node.namedItem("payload").toElement().text());
QFileInfo fileInfo(url.path());
if (fileInfo.fileName() == package.file.fileName()) {
QString removeFile;
......
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