Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/bee03f1b47939c4d06b3ef337f7b5237434e3ca8?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
20 additions and
4 deletions
src/adaptors/UBCFFSubsetAdaptor.cpp
src/board/UBBoardController.cpp
src/gui/UBDocumentTreeWidget.cpp
src/gui/UBDocumentTreeWidget.h
src/gui/UBThumbnailView.h
@ -1039,7 +1039,6 @@ bool UBCFFSubsetAdaptor::UBCFFSubsetReader::persistScenes()
UBThumbnailAdaptor : : persistScene ( mProxy - > persistencePath ( ) , tmpScene , i ) ;
UBThumbnailAdaptor : : persistScene ( mProxy - > persistencePath ( ) , tmpScene , i ) ;
delete tmpScene ;
delete tmpScene ;
mCurrentScene - > setModified ( false ) ;
mCurrentScene - > setModified ( false ) ;
}
}
@ -777,6 +777,12 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString
{
{
QString mimeType = pContentTypeHeader ;
QString mimeType = pContentTypeHeader ;
// In some cases "image/jpeg;charset=" is retourned by the drag-n-drop. That is
// why we will check if an ; exists and take the first part (the standard allows this kind of mimetype)
int position = mimeType . indexOf ( " ; " ) ;
if ( position ! = - 1 )
mimeType = mimeType . left ( position ) ;
if ( ! pSuccess )
if ( ! pSuccess )
{
{
UBApplication : : showMessage ( tr ( " Downloading content %1 failed " ) . arg ( sourceUrl . toString ( ) ) ) ;
UBApplication : : showMessage ( tr ( " Downloading content %1 failed " ) . arg ( sourceUrl . toString ( ) ) ) ;
@ -25,6 +25,10 @@
# include "core/UBDocumentManager.h"
# include "core/UBDocumentManager.h"
# include "document/UBDocumentController.h"
# include "document/UBDocumentController.h"
# include "adaptors/UBThumbnailAdaptor.h"
# include "adaptors/UBSvgSubsetAdaptor.h"
# include "frameworks/UBFileSystemUtils.h"
# include "core/memcheck.h"
# include "core/memcheck.h"
UBDocumentTreeWidget : : UBDocumentTreeWidget ( QWidget * parent )
UBDocumentTreeWidget : : UBDocumentTreeWidget ( QWidget * parent )
@ -290,6 +294,13 @@ void UBDocumentTreeWidget::dropEvent(QDropEvent *event)
}
}
UBPersistenceManager : : persistenceManager ( ) - > insertDocumentSceneAt ( targetDocProxy , sceneClone , targetDocProxy - > pageCount ( ) ) ;
UBPersistenceManager : : persistenceManager ( ) - > insertDocumentSceneAt ( targetDocProxy , sceneClone , targetDocProxy - > pageCount ( ) ) ;
//due to incorrect generation of thumbnails of invisible scene I've used direct copying of thumbnail files
//it's not universal and good way but it's faster
QString from = sourceItem . documentProxy ( ) - > persistencePath ( ) + UBFileSystemUtils : : digitFileFormat ( " /page%1.thumbnail.jpg " , sourceItem . sceneIndex ( ) + 1 ) ;
QString to = targetDocProxy - > persistencePath ( ) + UBFileSystemUtils : : digitFileFormat ( " /page%1.thumbnail.jpg " , targetDocProxy - > pageCount ( ) ) ;
QFile : : remove ( to ) ;
QFile : : copy ( from , to ) ;
}
}
}
}
@ -23,7 +23,7 @@ class UBDocumentProxyTreeItem;
class UBDocumentTreeWidget : public QTreeWidget
class UBDocumentTreeWidget : public QTreeWidget
{
{
Q_OBJECT ;
Q_OBJECT
public :
public :
UBDocumentTreeWidget ( QWidget * parent = 0 ) ;
UBDocumentTreeWidget ( QWidget * parent = 0 ) ;
@ -22,7 +22,7 @@ class UBGraphicsScene;
class UBThumbnailView : public QGraphicsView
class UBThumbnailView : public QGraphicsView
{
{
Q_OBJECT ;
Q_OBJECT
public :
public :
UBThumbnailView ( ) ;
UBThumbnailView ( ) ;