Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/bc3921ebdde124734a7dda9214385a9f9a737abd?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
16 additions and
2 deletions
src/document/UBDocumentController.cpp
src/document/UBDocumentController.h
src/gui/UBThumbnailWidget.cpp
src/gui/UBThumbnailWidget.h
@ -1401,7 +1401,6 @@ void UBDocumentTreeView::hSliderRangeChanged(int min, int max)
void UBDocumentTreeView : : mousePressEvent ( QMouseEvent * event )
{
QTreeView : : mousePressEvent ( event ) ;
UBApplication : : documentController - > updateActions ( ) ;
}
void UBDocumentTreeView : : dragEnterEvent ( QDragEnterEvent * event )
@ -1942,9 +1941,11 @@ void UBDocumentController::TreeViewSelectionChanged(const QModelIndex ¤t,
//We have just to pass a null proxy to disable the display of thumbnail
UBDocumentProxy * currentDocumentProxy = 0 ;
if ( current_index . isValid ( ) & & mDocumentUI - > documentTreeView - > selectionModel ( ) - > selectedRows ( 0 ) . size ( ) = = 1 ) {
if ( current_index . isValid ( ) & & mDocumentUI - > documentTreeView - > selectionModel ( ) - > selectedRows ( 0 ) . size ( ) = = 1 )
{
currentDocumentProxy = docModel - > proxyData ( current_index ) ;
setDocument ( currentDocumentProxy , false ) ;
clearThumbnailsSelection ( ) ;
}
//N/C - NNE - 20140414 : END
@ -3907,3 +3908,8 @@ void UBDocumentController::expandAll()
mDocumentUI - > documentTreeView - > setAnimated ( true ) ;
}
void UBDocumentController : : clearThumbnailsSelection ( )
{
mDocumentUI - > thumbnailWidget - > clearSelection ( ) ;
}
@ -458,6 +458,8 @@ class UBDocumentController : public UBDocumentContainer
QModelIndex findNextSiblingNotSelected ( const QModelIndex & index , QItemSelectionModel * selectionModel ) ;
bool parentIsSelected ( const QModelIndex & child , QItemSelectionModel * selectionModel ) ;
void clearThumbnailsSelection ( ) ;
signals :
void exportDone ( ) ;
void reorderDocumentsRequested ( ) ;
@ -232,6 +232,11 @@ QList<QGraphicsItem*> UBThumbnailWidget::selectedItems()
return sortedSelectedItems ;
}
void UBThumbnailWidget : : clearSelection ( )
{
mThumbnailsScene . clearSelection ( ) ;
}
void UBThumbnailWidget : : mousePressEvent ( QMouseEvent * event )
{
@ -66,6 +66,7 @@ class UBThumbnailWidget : public QGraphicsView
QList < QGraphicsItem * > selectedItems ( ) ;
void selectItemAt ( int pIndex , bool extend = false ) ;
void unselectItemAt ( int pIndex ) ;
void clearSelection ( ) ;
qreal thumbnailWidth ( )
{