diff --git a/src/gui/UBTeacherGuideWidgetsTools.cpp b/src/gui/UBTeacherGuideWidgetsTools.cpp index c7ba3aa1..cba4e8bc 100644 --- a/src/gui/UBTeacherGuideWidgetsTools.cpp +++ b/src/gui/UBTeacherGuideWidgetsTools.cpp @@ -230,11 +230,14 @@ void UBTGAdaptableText::bottomMargin(int newValue) * class UBTGDraggableWeb * ***************************************************************************/ UBDraggableWeb::UBDraggableWeb(QString& relativePath, QWidget* parent): QWebView(parent) - , mRelativePath(relativePath) , mDragStartPosition(QPoint(-1,-1)) , mDragStarted(false) { + if(!relativePath.startsWith("file://")) + mRelativePath = QUrl::fromLocalFile(relativePath).toString(); + else + mRelativePath = relativePath; //NOOP }