Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting https://git.osmesh.ru/MOS/OpenBoard/commit/ceca63c42e8f90f32409eeb068364d207422c3a2?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
2 additions and
10 deletions
src/board/UBLibraryController.cpp
src/gui/UBLibraryWidget.cpp
@ -155,7 +155,7 @@ void UBLibraryController::routeItem(QString& pItem, QString pMiddleDirectory)
}
}
destination = UBFileSystemUtils : : normalizeFilePath ( destination + " / " + itemToRoute . fileName ( ) ) ;
destination = UBFileSystemUtils : : normalizeFilePath ( destination + " / " + itemToRoute . fileName ( ) ) ;
QFile : : copy ( pItem , destination ) ;
UBFileSystemUtils : : copyFile ( QUrl ( pItem ) . toLocalFile ( ) , destination , false ) ;
}
}
}
}
@ -362,16 +362,8 @@ void UBLibraryWidget::dropEvent(QDropEvent *event)
if ( pMimeData - > hasUrls ( ) ) {
if ( pMimeData - > hasUrls ( ) ) {
QList < QUrl > urlList = pMimeData - > urls ( ) ;
QList < QUrl > urlList = pMimeData - > urls ( ) ;
for ( int i = 0 ; i < urlList . size ( ) & & i < 32 ; + + i ) {
for ( int i = 0 ; i < urlList . size ( ) & & i < 32 ; + + i ) {
QString filePath ;
QString crntPath = urlList . at ( i ) . toString ( ) ;
QString crntPath = urlList . at ( i ) . toString ( ) ;
mLibraryController - > importItemOnLibrary ( crntPath ) ;
if ( crntPath . startsWith ( " file: " ) | | crntPath . startsWith ( " / " ) ) {
filePath = QUrl ( crntPath ) . toLocalFile ( ) ;
} else {
filePath = crntPath ;
}
mLibraryController - > importItemOnLibrary ( filePath ) ;
bDropAccepted = true ;
bDropAccepted = true ;
}
}
}
}