Commit 07241990 authored by shibakaneki's avatar shibakaneki

Merge branch 'Bett-2012' of github.com:Sankore/Sankore-3.1 into Bett-2012

Conflicts:
	src/gui/UBTeacherBarWidget.cpp
parents abdea843 ef2e24c0
......@@ -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());
......@@ -365,7 +367,6 @@ void UBTeacherBarWidget::loadContent()
}else{
mpPreview->setDuration(eDuration_ThreeQuarter);
}
mpPreview->clean();
// Add the actions
......@@ -393,6 +394,10 @@ void UBTeacherBarWidget::loadContent()
// Add the comments
mpPreview->setComments(mpComments->document()->toPlainText());
}
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