Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/c0089c9feba243d4e0847b2bb3f78cdba3f11ab0?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
9 additions and
1 deletions
src/board/UBLibraryController.cpp
src/board/UBLibraryController.h
@ -72,7 +72,9 @@ UBLibraryController::UBLibraryController(QWidget *pParentWidget) :
bool UBLibraryController : : canItemsOnElementBeDeleted ( UBLibElement * pElement )
{
return ! pElement - > path ( ) . toLocalFile ( ) . startsWith ( UBSettings : : settings ( ) - > uniboardShapeLibraryDirectory ( ) ) ;
return ! pElement - > path ( ) . toLocalFile ( ) . startsWith ( UBSettings : : settings ( ) - > uniboardShapeLibraryDirectory ( ) ) & &
! pElement - > path ( ) . toLocalFile ( ) . startsWith ( UBSettings : : settings ( ) - > sankoreDistributedInteractiveDirectory ( ) ) & &
pElement - > isDeletable ( ) ;
}
void UBLibraryController : : createInternalWidgetItems ( )
@ -696,6 +698,7 @@ UBLibElement::UBLibElement() {
mType = eUBLibElementType_Category ;
mName = QObject : : tr ( " /Home " , " Category list label on navigation tool bar " ) ;
mbMoveable = false ;
mbDeletable = true ;
}
UBLibElement : : UBLibElement ( UBLibElement * element )
@ -707,6 +710,7 @@ UBLibElement::UBLibElement(UBLibElement* element)
mName = element - > name ( ) ;
mExtension = element - > extension ( ) ;
mbMoveable = element - > isMoveable ( ) ;
mbDeletable = element - > isDeletable ( ) ;
}
@ -717,6 +721,7 @@ UBLibElement::UBLibElement(eUBLibElementType type, const QUrl &path, const QStri
mName = name ;
mInfo = " " ;
mbMoveable = true ;
mbDeletable = true ;
if ( type = = eUBLibElementType_Folder )
mThumbnail = QImage ( " :images/libpalette/folder.svg " ) ;
@ -61,6 +61,8 @@ public:
void setExtension ( QString & extension ) { mExtension = extension ; }
bool isMoveable ( ) { return mbMoveable ; }
void setMoveable ( bool bState ) { mbMoveable = bState ; }
bool isDeletable ( ) const { return mbDeletable ; }
void setDeletable ( bool mState ) { mbDeletable = mState ; }
private :
eUBLibElementType mType ;
@ -70,6 +72,7 @@ private:
QString mName ;
QString mExtension ;
bool mbMoveable ;
bool mbDeletable ;
} ;
class UBChainedLibElement