|
|
@ -247,6 +247,7 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString url = pUrl; |
|
|
|
QString url = pUrl; |
|
|
|
// if the file name start with file:// it has be removed because QFileInfo doesn't support this form
|
|
|
|
// if the file name start with file:// it has be removed because QFileInfo doesn't support this form
|
|
|
|
|
|
|
|
url = url.replace("file:///",""); |
|
|
|
url = url.replace("file://",""); |
|
|
|
url = url.replace("file://",""); |
|
|
|
QString name = pName; |
|
|
|
QString name = pName; |
|
|
|
|
|
|
|
|
|
|
@ -304,7 +305,8 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD |
|
|
|
if (fi.exists()){ |
|
|
|
if (fi.exists()){ |
|
|
|
QString target = widgetLibraryPath + "/" + fi.fileName(); |
|
|
|
QString target = widgetLibraryPath + "/" + fi.fileName(); |
|
|
|
QString source = pUrl; |
|
|
|
QString source = pUrl; |
|
|
|
source.replace("file://",""); |
|
|
|
source = source.replace("file:///",""); |
|
|
|
|
|
|
|
source = source.replace("file://",""); |
|
|
|
QFile::copy(source, target); |
|
|
|
QFile::copy(source, target); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|