Commit 4cbdf772 authored by Yimgo's avatar Yimgo

Fix freezedWidgetPage from master.

parent f8531f5a
......@@ -38,8 +38,6 @@
#include "board/UBBoardController.h"
const QString freezedWidgetDefaultContentFilePath = "./etc/freezedWidgetWrapper.html";
QStringList UBGraphicsWidgetItem::sInlineJavaScripts;
bool UBGraphicsWidgetItem::sInlineJavaScriptLoaded = false;
......@@ -1139,6 +1137,8 @@ QString UBGraphicsW3CWidgetItem::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;
......
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