Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/6504c42e755c908f92cad6dd05aef53344a0b9d2?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
15 additions and
8 deletions
src/core/UBPersistenceManager.cpp
src/document/UBDocumentContainer.cpp
src/document/UBDocumentController.cpp
src/gui/UBDocumentNavigator.cpp
@ -238,7 +238,10 @@ QDialog::DialogCode UBPersistenceManager::processInteractiveReplacementDialog(UB
if ( mDocumentTreeStructureModel - > currentIndex ( ) = = replaceIndex )
{
UBApplication : : documentController - > selectDocument ( pProxy , true , true ) ;
if ( pProxy - > pageCount ( ) > 0 )
{
UBApplication : : documentController - > selectDocument ( pProxy , true , true ) ;
}
}
if ( replaceProxy ) {
@ -49,7 +49,6 @@ void UBDocumentContainer::setDocument(UBDocumentProxy* document, bool forceReloa
{
mCurrentDocument = document ;
//qDebug() << documentThumbs();
clearThumbPage ( ) ;
reloadThumbnails ( ) ;
emit documentSet ( mCurrentDocument ) ;
@ -1854,12 +1854,15 @@ void UBDocumentController::selectDocument(UBDocumentProxy* proxy, bool setAsCurr
if ( setAsCurrentDocument ) {
UBPersistenceManager : : persistenceManager ( ) - > mDocumentTreeStructureModel - > setCurrentDocument ( proxy ) ;
QModelIndex indexCurrentDoc = UBPersistenceManager : : persistenceManager ( ) - > mDocumentTreeStructureModel - > indexForProxy ( proxy ) ;
mDocumentUI - > documentTreeView - > setSelectedAndExpanded ( indexCurrentDoc , true , editMode ) ;
if ( proxy ! = mBoardController - > selectedDocument ( ) ) // only if wanted Document is different from document actually on Board, // ALTI/AOU - 20140217
if ( indexCurrentDoc . isValid ( ) )
{
//issue 1629 - NNE - 20131105 : When set a current document, change in the board controller
mBoardController - > setActiveDocumentScene ( proxy , 0 , true , onImport ) ;
mDocumentUI - > documentTreeView - > setSelectedAndExpanded ( indexCurrentDoc , true , editMode ) ;
if ( proxy ! = mBoardController - > selectedDocument ( ) ) // only if wanted Document is different from document actually on Board, // ALTI/AOU - 20140217
{
//issue 1629 - NNE - 20131105 : When set a current document, change in the board controller
mBoardController - > setActiveDocumentScene ( proxy , 0 , true , onImport ) ;
}
}
}
@ -224,6 +224,8 @@ void UBDocumentNavigator::updateSpecificThumbnail(int iPage)
mThumbsWithLabels [ iPage ] . setThumbnail ( newItem ) ;
if ( mLastClickedThumbnail = = oldItem )
mLastClickedThumbnail = newItem ;
if ( mSelectedThumbnail = = oldItem )
mSelectedThumbnail = newItem ;
delete oldItem ;
oldItem = NULL ;
}
@ -317,7 +319,7 @@ void UBDocumentNavigator::resizeEvent(QResizeEvent *event)
mThumbnailWidth = ( width ( ) > mThumbnailMinWidth ) ? width ( ) - 2 * border ( ) : mThumbnailMinWidth ;
if ( mSelectedThumbnail )
ensureVisible ( mSelectedThumbnail ) ;
ensureVisible ( mSelectedThumbnail ) ;
// Refresh the scene
refreshScene ( ) ;