Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/be6de52018dc28b2f5f4d46db721da919b9bd24d?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
7 additions and
6 deletions
src/board/UBLibraryController.cpp
@ -79,8 +79,6 @@ UBLibraryController::UBLibraryController(QWidget *pParentWidget, UBBoardControll
mInteractiveUserDirectoryPath = QUrl : : fromLocalFile ( UBSettings : : settings ( ) - > uniboardInteractiveUserDirectory ( ) ) ;
qDebug ( ) < < " >> mInteractiveUserDirectoryPath : " < < mInteractiveUserDirectoryPath ;
createInternalWidgetItems ( ) ;
}
@ -333,10 +331,6 @@ QList<UBLibElement*> UBLibraryController::addVirtualElementsForItemPath(const QS
userPath ( path ) ;
content < < listElementsInPath ( path . toLocalFile ( ) ) ;
}
/* else if (pPath == mInteractiveUserDirectoryPath.toLocalFile()){
content < < listElementsInPath ( UBSettings : : settings ( ) - > uniboardInteractiveLibraryDirectory ( ) ) ;
content < < listElementsInPath ( UBSettings : : settings ( ) - > uniboardInteractiveFavoritesDirectory ( ) ) ;
} */
return content ;
}
@ -498,6 +492,13 @@ void UBLibraryController::addItemToPage(UBLibElement* item)
else if ( mimeType . contains ( " application " ) ) {
addInteractivesToCurrentPage ( list ) ;
}
else if ( mimeType . isEmpty ( ) & & item - > type ( ) = = eUBLibElementType_InteractiveItem ) {
// Those conditions allow us to detect internal app like
// mask, ruler, compass and protractor
list . clear ( ) ;
list < < item - > path ( ) . toString ( ) . replace ( " file: " , " " ) ;
addInteractivesToCurrentPage ( list ) ;
}
else {
UBApplication : : showMessage ( tr ( " Adding to page failed for item %1. " ) . arg ( item - > name ( ) ) ) ;
}