Commit 2bb8ed29 authored by Claudio Valerio's avatar Claudio Valerio

fixed issue of flash that wasn't embedded on w3c wrapper

parent 15bd1121
......@@ -246,6 +246,8 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
const QString& pName)
{
QString url = pUrl;
// if the file name start with file:// it has be removed because QFileInfo doesn't support this form
url = url.replace("file://","");
QString name = pName;
QFileInfo fi(url);
......@@ -299,9 +301,11 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
}
widgetLibraryDir.mkpath(widgetLibraryPath);
if (fi.exists()) {
if (fi.exists()){
QString target = widgetLibraryPath + "/" + fi.fileName();
QFile::copy(pUrl, target);
QString source = pUrl;
source.replace("file://","");
QFile::copy(source, target);
}
QFile configFile(widgetLibraryPath + "/config.xml");
......
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