fixed issue 518 loading the freezed widget html page on widget creation

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent eff4dbade7
commit f48c2af3a1
  1. 5
      src/web/UBTrapFlashController.cpp

@ -31,6 +31,8 @@
#include "board/UBBoardController.h" #include "board/UBBoardController.h"
#include "frameworks/UBPlatformUtils.h"
#include "ui_trapFlash.h" #include "ui_trapFlash.h"
#include "core/memcheck.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)); 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(); mTrapFlashDialog->hide();
} }

Loading…
Cancel
Save