Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/5343f6b9baff3698a5841ee19fcea261fa7b50b8?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
15 additions and
1 deletions
src/board/UBBoardController.cpp
src/gui/UBBoardThumbnailsView.cpp
@ -1567,11 +1567,19 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
updateBackgroundActionsState ( mActiveScene - > isDarkBackground ( ) , mActiveScene - > pageBackground ( ) ) ;
updateBackgroundActionsState ( mActiveScene - > isDarkBackground ( ) , mActiveScene - > pageBackground ( ) ) ;
if ( documentChange )
if ( documentChange )
{
UBGraphicsTextItem : : lastUsedTextColor = QColor ( ) ;
UBGraphicsTextItem : : lastUsedTextColor = QColor ( ) ;
}
if ( sceneChange )
if ( sceneChange )
{
//should not be necessary, but no more time to investigate on it for the moment :
//for some reason, certain thumbnail views are not updating except if we load the document twice....
//the only workaroud I found for the moment..
emit initThumbnailsRequired ( this ) ;
emit activeSceneChanged ( ) ;
emit activeSceneChanged ( ) ;
}
}
}
void UBBoardController : : moveSceneToIndex ( int source , int target )
void UBBoardController : : moveSceneToIndex ( int source , int target )
@ -127,7 +127,13 @@ void UBBoardThumbnailsView::addThumbnail(UBDocumentContainer* source, int i)
void UBBoardThumbnailsView : : clearThumbnails ( )
void UBBoardThumbnailsView : : clearThumbnails ( )
{
{
qDeleteAll ( mThumbnails ) ;
for ( int i = 0 ; i < mThumbnails . size ( ) ; i + + )
{
scene ( ) - > removeItem ( mThumbnails . at ( i ) - > pageNumber ( ) ) ;
scene ( ) - > removeItem ( mThumbnails . at ( i ) ) ;
mThumbnails . at ( i ) - > deleteLater ( ) ;
}
mThumbnails . clear ( ) ;
mThumbnails . clear ( ) ;
}
}