Commit ef2e24c0 authored by Claudio Valerio's avatar Claudio Valerio

fixed widget to load on page change regarding the stored information

parent 12a77f0a
......@@ -352,6 +352,8 @@ void UBTeacherBarWidget::loadContent()
mpComments->document()->setPlainText(nextInfos.comments);
}
mpPreview->mediaViewer()->cleanMedia();
if(!isEmpty()){
// Update the fields of the preview widget
mpPreview->setTitle(mpTitle->text());
......@@ -366,9 +368,12 @@ void UBTeacherBarWidget::loadContent()
mpPreview->setDuration(eDuration_ThreeQuarter);
}
mpPreview->setComments(mpComments->document()->toPlainText());
mpPreview->mediaViewer()->cleanMedia();
mpPreview->mediaViewer()->loadMedia(nextInfos.medias);
}
else{
mpStackWidget->setCurrentWidget(mpContainer);
}
}
......
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