Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/cab036fe9eff3c8bfb919c193a984e053d57cc3f?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
16 additions and
11 deletions
src/board/UBBoardController.cpp
src/gui/UBDocumentNavigator.cpp
src/gui/UBDocumentTreeWidget.cpp
@ -485,11 +485,14 @@ void UBBoardController::addScene(UBGraphicsScene* scene, bool replaceActiveIfEmp
QString source = scene - > document ( ) - > persistencePath ( ) + " / " + relativeFile . toString ( ) ;
QString target = selectedDocument ( ) - > persistencePath ( ) + " / " + relativeFile . toString ( ) ;
if ( QFileInfo ( source ) . isDir ( ) )
Q_ASSERT ( UBFileSystemUtils : : copyDir ( source , target ) ) ;
else {
QFileInfo fi ( target ) ;
QDir d = fi . dir ( ) ;
d . mkpath ( d . absolutePath ( ) ) ;
QFile : : copy ( source , target ) ;
Q_ASSERT ( QFile : : copy ( source , target ) ) ;
}
}
}
@ -85,7 +85,6 @@ UBDocumentNavigator::~UBDocumentNavigator()
void UBDocumentNavigator : : generateThumbnails ( UBDocumentContainer * source )
{
mThumbsWithLabels . clear ( ) ;
// foreach(QGraphicsItem* it, mScene->items())
int selectedIndex = - 1 ;
QList < QGraphicsItem * > graphicsItemList = mScene - > items ( ) ;
for ( int i = 0 ; i < graphicsItemList . size ( ) ; i + = 1 )
@ -326,11 +326,14 @@ void UBDocumentTreeWidget::dropEvent(QDropEvent *event)
QString source = scene - > document ( ) - > persistencePath ( ) + " / " + relativeFile . toString ( ) ;
QString target = targetDocProxy - > persistencePath ( ) + " / " + relativeFile . toString ( ) ;
if ( QFileInfo ( source ) . isDir ( ) )
Q_ASSERT ( UBFileSystemUtils : : copyDir ( source , target ) ) ;
else {
QFileInfo fi ( target ) ;
QDir d = fi . dir ( ) ;
d . mkpath ( d . absolutePath ( ) ) ;
QFile : : copy ( source , target ) ;
Q_ASSERT ( QFile : : copy ( source , target ) ) ;
}
}
UBPersistenceManager : : persistenceManager ( ) - > insertDocumentSceneAt ( targetDocProxy , sceneClone , targetDocProxy - > pageCount ( ) ) ;