Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/1232807ad10de92eb1808a19b26974f132b43920?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
15 additions and
3 deletions
src/board/UBBoardController.cpp
@ -957,6 +957,9 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri
// In some cases "image/jpeg;charset=" is retourned by the drag-n-drop. That is
// In some cases "image/jpeg;charset=" is retourned by the drag-n-drop. That is
// why we will check if an ; exists and take the first part (the standard allows this kind of mimetype)
// why we will check if an ; exists and take the first part (the standard allows this kind of mimetype)
if ( mimeType . isEmpty ( ) )
mimeType = UBFileSystemUtils : : mimeTypeFromFileName ( sourceUrl . toString ( ) ) ;
int position = mimeType . indexOf ( " ; " ) ;
int position = mimeType . indexOf ( " ; " ) ;
if ( position ! = - 1 )
if ( position ! = - 1 )
mimeType = mimeType . left ( position ) ;
mimeType = mimeType . left ( position ) ;
@ -977,9 +980,18 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri
qDebug ( ) < < " accepting mime type " < < mimeType < < " as raster image " ;
qDebug ( ) < < " accepting mime type " < < mimeType < < " as raster image " ;
QImage img ;
img . loadFromData ( pData ) ;
QPixmap pix ;
QPixmap pix = QPixmap : : fromImage ( img ) ;
if ( pData . length ( ) = = 0 ) {
pix . load ( sourceUrl . toString ( ) ) ;
}
else {
QImage img ;
img . loadFromData ( pData ) ;
pix = QPixmap : : fromImage ( img ) ;
}
UBGraphicsPixmapItem * pixItem = mActiveScene - > addPixmap ( pix , NULL , pPos , 1. ) ;
UBGraphicsPixmapItem * pixItem = mActiveScene - > addPixmap ( pix , NULL , pPos , 1. ) ;
pixItem - > setSourceUrl ( sourceUrl ) ;
pixItem - > setSourceUrl ( sourceUrl ) ;