resolved path problem for freezedWidgetWrapper.html

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 1c2069ce73
commit d13106e5d2
  1. 3
      src/domain/UBW3CWidget.cpp

@ -29,7 +29,6 @@
#include "core/memcheck.h"
const QString freezedWidgetDefaultContentFilePath = "./etc/freezedWidgetWrapper.html";
bool UBW3CWidget::sTemplateLoaded = false;
QMap<QString, QString> UBW3CWidget::sNPAPIWrapperTemplates;
@ -426,6 +425,8 @@ QString UBW3CWidget::freezedWidgetPage()
static QString defaultcontent;
if (defaultcontent.isNull()) {
QString etcPath = UBPlatformUtils::applicationResourcesDirectory() + "/etc/";
QString freezedWidgetDefaultContentFilePath = etcPath + "freezedWidgetWrapper.html";
QFile wrapperFile(freezedWidgetDefaultContentFilePath);
if (!wrapperFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
qDebug() << "can't open wrapper file " + freezedWidgetDefaultContentFilePath;

Loading…
Cancel
Save