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