Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/e29d242a261b67e81af9dafbbf2363e192a34438?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
14 additions and
14 deletions
src/domain/UBAbstractWidget.cpp
src/domain/UBW3CWidget.cpp
@ -78,17 +78,17 @@ bool UBAbstractWidget::canBeContent()
{
// if we under MAC OS
# if defined(Q_OS_MAC)
return mCanBeContent & OSType : : type_MAC ;
return mCanBeContent & UBAbstractWidget : : type_MAC ;
# endif
// if we under UNIX OS
# if defined(Q_OS_UNIX)
return mCanBeContent & OSType : : type_UNIX ;
return mCanBeContent & UBAbstractWidget : : type_UNIX ;
# endif
// if we under WINDOWS OS
# if defined(Q_OS_WIN)
return mCanBeContent & OSType : : type_WIN ;
return mCanBeContent & UBAbstractWidget : : type_WIN ;
# endif
}
@ -96,17 +96,17 @@ bool UBAbstractWidget::canBeTool()
{
// if we under MAC OS
# if defined(Q_OS_MAC)
return mCanBeTool & OSType : : type_MAC ;
return mCanBeTool & UBAbstractWidget : : type_MAC ;
# endif
// if we under UNIX OS
# if defined(Q_OS_UNIX)
return mCanBeTool & OSType : : type_UNIX ;
return mCanBeTool & UBAbstractWidget : : type_UNIX ;
# endif
// if we under WINDOWS OS
# if defined(Q_OS_WIN)
return mCanBeTool & OSType : : type_WIN ;
return mCanBeTool & UBAbstractWidget : : type_WIN ;
# endif
}
@ -90,44 +90,44 @@ UBW3CWidget::UBW3CWidget(const QUrl& pWidgetUrl, QWidget *parent)
if ( roles = = " " | | roles . contains ( " tool " ) )
{
mCanBeTool = UBAbstractWidget : : OSType : : type_ALL ;
mCanBeTool = UBAbstractWidget : : type_ALL ;
}
if ( roles . contains ( " twin " ) )
{
mCanBeTool | = UBAbstractWidget : : OSType : : type_WIN ;
mCanBeTool | = UBAbstractWidget : : type_WIN ;
}
if ( roles . contains ( " tmac " ) )
{
mCanBeTool | = UBAbstractWidget : : OSType : : type_MAC ;
mCanBeTool | = UBAbstractWidget : : type_MAC ;
}
if ( roles . contains ( " tunix " ) )
{
mCanBeTool | = UBAbstractWidget : : OSType : : type_UNIX ;
mCanBeTool | = UBAbstractWidget : : type_UNIX ;
}
//---------//
if ( roles = = " " | | roles . contains ( " content " ) )
{
mCanBeContent = UBAbstractWidget : : OSType : : type_ALL ;
mCanBeContent = UBAbstractWidget : : type_ALL ;
}
if ( roles . contains ( " cwin " ) )
{
mCanBeContent | = UBAbstractWidget : : OSType : : type_WIN ;
mCanBeContent | = UBAbstractWidget : : type_WIN ;
}
if ( roles . contains ( " cmac " ) )
{
mCanBeContent | = UBAbstractWidget : : OSType : : type_MAC ;
mCanBeContent | = UBAbstractWidget : : type_MAC ;
}
if ( roles . contains ( " cunix " ) )
{
mCanBeContent | = UBAbstractWidget : : OSType : : type_UNIX ;
mCanBeContent | = UBAbstractWidget : : type_UNIX ;
}
//------------------------------//