Commit f11e0df0 authored by David Faure's avatar David Faure

Enabled -DQT_NO_CAST_TO_ASCII and fix compilation accordingly

parent 45e66b03
......@@ -31,6 +31,7 @@ include(KDECMakeSettings)
include(KDECompilerSettings)
include(ECMOptionalAddSubdirectory)
add_definitions(-DQT_NO_CAST_TO_ASCII)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DTRANSLATION_DOMAIN=\"kdenlive\")
......
......@@ -765,7 +765,7 @@ void ResourceWidget::slotAccessTokenReceived(QString sAccessToken)
QUrl srcUrl(m_currentInfo.itemDownload);
request.setUrl(srcUrl);// Download url of a freesound file
// eg https://www.freesound.org/apiv2/sounds/39206/download/
request.setRawHeader(QByteArray("Authorization"),QByteArray( "Bearer ").append( sAccessToken));
request.setRawHeader(QByteArray("Authorization"),QByteArray("Bearer").append(sAccessToken.toUtf8()));
m_meta="";
m_desc="<br><b>" + i18n("Starting File Download") + "</b><br>";
......
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