|
|
@ -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() |
|
|
|
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; |
|
|
|