Commit d13106e5 authored by Claudio Valerio's avatar Claudio Valerio

resolved path problem for freezedWidgetWrapper.html

parent 1c2069ce
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "core/memcheck.h" #include "core/memcheck.h"
const QString freezedWidgetDefaultContentFilePath = "./etc/freezedWidgetWrapper.html";
bool UBW3CWidget::sTemplateLoaded = false; bool UBW3CWidget::sTemplateLoaded = false;
QMap<QString, QString> UBW3CWidget::sNPAPIWrapperTemplates; QMap<QString, QString> UBW3CWidget::sNPAPIWrapperTemplates;
...@@ -426,6 +425,8 @@ QString UBW3CWidget::freezedWidgetPage() ...@@ -426,6 +425,8 @@ QString UBW3CWidget::freezedWidgetPage()
static QString defaultcontent; static QString defaultcontent;
if (defaultcontent.isNull()) { if (defaultcontent.isNull()) {
QString etcPath = UBPlatformUtils::applicationResourcesDirectory() + "/etc/";
QString freezedWidgetDefaultContentFilePath = etcPath + "freezedWidgetWrapper.html";
QFile wrapperFile(freezedWidgetDefaultContentFilePath); QFile wrapperFile(freezedWidgetDefaultContentFilePath);
if (!wrapperFile.open(QIODevice::ReadOnly | QIODevice::Text)) { if (!wrapperFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
qDebug() << "can't open wrapper file " + freezedWidgetDefaultContentFilePath; qDebug() << "can't open wrapper file " + freezedWidgetDefaultContentFilePath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment