Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/543e547e126a7f6f7dd04ba73d38bbf758416c0d?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
4 additions and
3 deletions
src/document/UBDocumentController.cpp
src/pdf/XPDFRenderer.cpp
@ -963,8 +963,9 @@ void UBDocumentController::importFile()
if ( group )
{
QString defaultPath = UBSettings : : settings ( ) - > lastImportFilePath - > get ( ) . toString ( ) ;
QString filePath = QFileDialog : : getOpenFileName ( mParentWidget , tr ( " Open Supported File " ) ,
defaultPath , docManager - > importFileFilter ( ) ) ;
if ( defaultPath . isDetached ( ) )
defaultPath = UBSettings : : settings ( ) - > userDocumentDirectory ( ) ;
QString filePath = QFileDialog : : getOpenFileName ( mParentWidget , tr ( " Open Supported File " ) , defaultPath , docManager - > importFileFilter ( ) ) ;
QApplication : : setOverrideCursor ( QCursor ( Qt : : WaitCursor ) ) ;
QApplication : : processEvents ( ) ;
@ -49,7 +49,7 @@ XPDFRenderer::XPDFRenderer(const QString &filename, bool importingFile)
globalParams - > setupBaseFonts ( QFile : : encodeName ( UBPlatformUtils : : applicationResourcesDirectory ( ) + " / " + " fonts " ) . data ( ) ) ;
}
mDocument = new PDFDoc ( new GString ( filename . toUtf8 ( ) . data ( ) ) , 0 , 0 , 0 ) ; // the filename GString is deleted on PDFDoc desctruction
mDocument = new PDFDoc ( new GString ( filename . toLocal8Bit ( ) ) , 0 , 0 , 0 ) ; // the filename GString is deleted on PDFDoc desctruction
sInstancesCount . ref ( ) ;
}