Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/ec7f0b295eff808082dd58ed4931386d3ace20c2?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
11 additions and
4 deletions
src/board/UBBoardController.cpp
src/board/UBBoardController.h
@ -54,6 +54,8 @@
# include "domain/UBGraphicsGroupContainerItem.h"
# include "domain/UBItem.h"
# include "board/UBFeaturesController.h"
# include "domain/UBGraphicsStrokesGroup.h"
# include "gui/UBFeaturesWidget.h"
# include "tools/UBToolsManager.h"
@ -536,6 +538,8 @@ void UBBoardController::duplicateItem(UBItem *item)
if ( ! item )
return ;
mLastCreatedItem = NULL ;
QUrl sourceUrl ;
QByteArray pData ;
@ -612,9 +616,8 @@ void UBBoardController::duplicateItem(UBItem *item)
UBItem * pItem = dynamic_cast < UBItem * > ( pIt ) ;
if ( NULL ! = pItem ) {
duplicateItem ( pItem ) ; // The duplication already copies the item parameters
QGraphicsItem * pDuplicatedItem = dynamic_cast < QGraphicsItem * > ( ( mActiveScene - > children ( ) . last ( ) ) ) ;
if ( NULL ! = pDuplicatedItem ) {
pDuplicatedItem - > setSelected ( true ) ;
if ( NULL ! = mLastCreatedItem ) {
mLastCreatedItem - > setSelected ( true ) ;
}
}
}
@ -630,8 +633,10 @@ void UBBoardController::duplicateItem(UBItem *item)
QGraphicsItem * gitem = dynamic_cast < QGraphicsItem * > ( item - > deepCopy ( ) ) ;
if ( gitem )
{
qDebug ( ) < < " Adding a stroke: " < < gitem ;
mActiveScene - > addItem ( gitem ) ;
gitem - > setPos ( itemPos ) ;
mLastCreatedItem = gitem ;
}
return ;
} break ;
@ -646,6 +651,7 @@ void UBBoardController::duplicateItem(UBItem *item)
QGraphicsItem * createdGitem = dynamic_cast < QGraphicsItem * > ( createdItem ) ;
if ( createdGitem )
createdGitem - > setPos ( itemPos ) ;
mLastCreatedItem = dynamic_cast < QGraphicsItem * > ( createdItem ) ;
}
}
@ -279,6 +279,7 @@ class UBBoardController : public UBDocumentContainer
bool mCleanupDone ;
QMap < QAction * , QPair < QString , QString > > mActionTexts ;
bool mCacheWidgetIsEnabled ;
QGraphicsItem * mLastCreatedItem ;
private slots :
void stylusToolDoubleClicked ( int tool ) ;