Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/79c425b91c3f7bd0ccfb717f5cb2fc596ef43f68?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
9 additions and
4 deletions
src/board/UBLibraryController.cpp
@ -263,10 +263,15 @@ QImage* UBLibraryController::createThumbnail(UBLibElement* pElement)
QImage * UBLibraryController : : thumbnailForFile ( UBLibElement * pElement )
QImage * UBLibraryController : : thumbnailForFile ( UBLibElement * pElement )
{
{
if ( pElement - > path ( ) . toString ( ) . contains ( " uniboardTool:// " ) ) {
if ( pElement - > path ( ) . toString ( ) . contains ( " uniboardTool:// " ) ) {
QImage * image = new QImage ( UBToolsManager : : manager ( ) - > iconFromToolId ( pElement - > path ( ) . toString ( ) ) ) ;
QImage * image = new QImage ( UBToolsManager : : manager ( ) - > iconFromToolId ( pElement - > path ( ) . toString ( ) ) ) ;
return image ;
return image ;
}
}
if ( pElement - > type ( ) = = eUBLibElementType_InteractiveItem ) {
QImage * image = new QImage ( UBAbstractWidget : : iconFilePath ( pElement - > path ( ) ) ) ;
return image ;
}
QString thumbnailPath = UBFileSystemUtils : : thumbnailPath ( pElement - > path ( ) . toLocalFile ( ) ) ;
QString thumbnailPath = UBFileSystemUtils : : thumbnailPath ( pElement - > path ( ) . toLocalFile ( ) ) ;
if ( ! thumbnailPath . length ( ) )
if ( ! thumbnailPath . length ( ) )