From f48c2af3a18d1765db1c7fc2bc211a76519b6a3e Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 6 Aug 2012 18:16:35 +0200 Subject: [PATCH] fixed issue 518 loading the freezed widget html page on widget creation --- src/web/UBTrapFlashController.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/web/UBTrapFlashController.cpp b/src/web/UBTrapFlashController.cpp index d066227d..25cb37e9 100644 --- a/src/web/UBTrapFlashController.cpp +++ b/src/web/UBTrapFlashController.cpp @@ -31,6 +31,8 @@ #include "board/UBBoardController.h" +#include "frameworks/UBPlatformUtils.h" + #include "ui_trapFlash.h" #include "core/memcheck.h" @@ -201,6 +203,9 @@ void UBTrapFlashController::createWidget() UBApplication::boardController->downloadURL(QUrl(selectedObject.source), QPoint(0, 0), QSize(selectedObject.width, selectedObject.height)); } + QString freezedWidgetPath = UBPlatformUtils::applicationResourcesDirectory() + "/etc/freezedWidgetWrapper.html"; + mTrapFlashUi->webView->load(QUrl::fromLocalFile(freezedWidgetPath)); + mTrapFlashDialog->hide(); }