Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/b5f0e0c52fa7fd6a2094ff4b3391e3883dfc2a9c
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
21 additions and
0 deletions
src/document/UBDocumentController.cpp
src/document/UBDocumentController.h
src/gui/UBMainWindow.cpp
src/gui/UBMainWindow.h
@ -55,6 +55,7 @@ UBDocumentController::UBDocumentController(UBMainWindow* mainWindow)
{
setupViews ( ) ;
setupToolbar ( ) ;
connect ( this , SIGNAL ( exportDone ( ) ) , mMainWindow , SLOT ( onExportDone ( ) ) ) ;
}
@ -818,6 +819,7 @@ void UBDocumentController::exportDocument()
if ( proxy )
{
selectedExportAdaptor - > persist ( proxy ) ;
emit exportDone ( ) ;
}
else
{
@ -37,6 +37,7 @@ class UBDocumentController : public QObject
signals :
void refreshThumbnails ( ) ;
void exportDone ( ) ;
public slots :
void createNewDocument ( ) ;
@ -102,3 +102,17 @@ void UBMainWindow::keyPressEvent(QKeyEvent *event)
}
*/
}
void UBMainWindow : : onExportDone ( )
{
// HACK : When opening the file save dialog during the document exportation,
// some buttons of the toolbar become disabled without any reason. We
// re-enable them here.
actionExport - > setEnabled ( true ) ;
actionNewDocument - > setEnabled ( true ) ;
actionRename - > setEnabled ( true ) ;
actionDuplicate - > setEnabled ( true ) ;
actionDelete - > setEnabled ( true ) ;
actionOpen - > setEnabled ( true ) ;
actionDocumentAdd - > setEnabled ( true ) ;
}
@ -12,6 +12,7 @@ class QStackedLayout;
class UBMainWindow : public QMainWindow , public Ui : : MainWindow
{
Q_OBJECT
public :
UBMainWindow ( QWidget * parent = 0 , Qt : : WindowFlags flags = 0 ) ;
@ -26,6 +27,9 @@ class UBMainWindow : public QMainWindow, public Ui::MainWindow
void addDocumentsWidget ( QWidget * pWidget ) ;
void switchToDocumentsWidget ( ) ;
public slots :
void onExportDone ( ) ;
protected :
virtual void keyPressEvent ( QKeyEvent * event ) ;