Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/29fc2f45dabbc7ff38e60e08f4f89807cf67db4a?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
1 additions and
6 deletions
src/core/UBPersistenceManager.cpp
@ -587,13 +587,8 @@ UBGraphicsScene* UBPersistenceManager::loadDocumentScene(UBDocumentProxy* proxy,
return mSceneCache . value ( proxy , sceneIndex ) ;
return mSceneCache . value ( proxy , sceneIndex ) ;
else {
else {
UBGraphicsScene * scene = UBSvgSubsetAdaptor : : loadScene ( proxy , sceneIndex ) ;
UBGraphicsScene * scene = UBSvgSubsetAdaptor : : loadScene ( proxy , sceneIndex ) ;
// claudio: this is not a good fix but this code has to be reworked
if ( ! scene & & UBSettings : : settings ( ) - > teacherGuidePageZeroActivated - > get ( ) . toBool ( ) ) {
if ( ! scene & & UBSettings : : settings ( ) - > teacherGuidePageZeroActivated - > get ( ) . toBool ( ) ) {
QString fileName = proxy - > persistencePath ( ) + UBFileSystemUtils : : digitFileFormat ( " /page%1.svg " , 0 ) ;
createDocumentSceneAt ( proxy , 0 ) ;
QFile file ( fileName ) ;
if ( ! file . exists ( ) ) {
UBPersistenceManager : : persistenceManager ( ) - > persistDocumentScene ( proxy , new UBGraphicsScene ( proxy ) , 0 ) ;
}
scene = UBSvgSubsetAdaptor : : loadScene ( proxy , 0 ) ;
scene = UBSvgSubsetAdaptor : : loadScene ( proxy , 0 ) ;
}
}