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

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

@ -246,6 +246,8 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
const QString& pName) const QString& pName)
{ {
QString url = pUrl; 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; QString name = pName;
QFileInfo fi(url); QFileInfo fi(url);
@ -301,7 +303,9 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
widgetLibraryDir.mkpath(widgetLibraryPath); widgetLibraryDir.mkpath(widgetLibraryPath);
if (fi.exists()){ if (fi.exists()){
QString target = widgetLibraryPath + "/" + fi.fileName(); QString target = widgetLibraryPath + "/" + fi.fileName();
QFile::copy(pUrl, target); QString source = pUrl;
source.replace("file://","");
QFile::copy(source, target);
} }
QFile configFile(widgetLibraryPath + "/config.xml"); QFile configFile(widgetLibraryPath + "/config.xml");

Loading…
Cancel
Save