Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/c6cc0d3a19d13b6255a6557488b31e63c16e3b61?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
4 additions and
7 deletions
src/desktop/UBCustomCaptureWindow.cpp
src/desktop/UBDesktopAnnotationController.cpp
@ -74,8 +74,7 @@ int UBCustomCaptureWindow::execute(const QPixmap &pScreenPixmap)
QDesktopWidget * desktop = QApplication : : desktop ( ) ;
QDesktopWidget * desktop = QApplication : : desktop ( ) ;
int currentScreen = desktop - > screenNumber ( QCursor : : pos ( ) ) ;
int currentScreen = desktop - > screenNumber ( QCursor : : pos ( ) ) ;
setGeometry ( desktop - > screenGeometry ( currentScreen ) ) ;
setGeometry ( desktop - > screenGeometry ( currentScreen ) ) ;
this - > show ( ) ;
UBPlatformUtils : : showFullScreen ( this ) ;
setWindowOpacity ( 1.0 ) ;
setWindowOpacity ( 1.0 ) ;
return exec ( ) ;
return exec ( ) ;
@ -501,12 +501,10 @@ QPixmap UBDesktopAnnotationController::getScreenPixmap()
{
{
QDesktopWidget * desktop = QApplication : : desktop ( ) ;
QDesktopWidget * desktop = QApplication : : desktop ( ) ;
// we capture the screen in which the mouse is.
const QRect primaryScreenRect = desktop - > screenGeometry ( QCursor : : pos ( ) ) ;
QCoreApplication : : flush ( ) ;
return QPixmap : : grabWindow ( desktop - > winId ( ) , primaryScreenRect . x ( )
QScreen * screen = QApplication : : primaryScreen ( ) ;
, primaryScreenRect . y ( ) , primaryScreenRect . width ( ) , primaryScreenRect . height ( ) ) ;
return screen - > grabWindow ( desktop - > effectiveWinId ( ) ) ;
}
}