fixed file:/// on windows path

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 767b00e939
commit c7d95fe384
  1. 4
      src/domain/UBW3CWidget.cpp

@ -247,6 +247,7 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
{
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:///","");
url = url.replace("file://","");
QString name = pName;
@ -304,7 +305,8 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
if (fi.exists()){
QString target = widgetLibraryPath + "/" + fi.fileName();
QString source = pUrl;
source.replace("file://","");
source = source.replace("file:///","");
source = source.replace("file://","");
QFile::copy(source, target);
}

Loading…
Cancel
Save