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

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent 726150fa93
commit a7415550fe
  1. 8
      src/domain/UBW3CWidget.cpp

@ -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");

Loading…
Cancel
Save