|
|
@ -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); |
|
|
@ -299,9 +301,11 @@ 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"); |
|
|
|