SANKORE-628

QT:Sankore crashes after page shuffled on a document palette
preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent ff32e97781
commit 865f0769f0
  1. 6
      src/document/UBDocumentController.cpp
  2. 1
      src/document/UBDocumentController.h

@ -71,9 +71,15 @@ UBDocumentController::UBDocumentController(UBMainWindow* mainWindow)
{ {
setupViews(); setupViews();
setupToolbar(); setupToolbar();
this->selectDocument(UBApplication::boardController->activeDocument());
connect(this, SIGNAL(exportDone()), mMainWindow, SLOT(onExportDone())); connect(this, SIGNAL(exportDone()), mMainWindow, SLOT(onExportDone()));
connect(mMainWindow->actionNewPage, SIGNAL(triggered()), this, SLOT(reloadThumbs()));
} }
void UBDocumentController::reloadThumbs()
{
mDocumentThumbs = UBThumbnailAdaptor::load(selectedDocumentProxy());
}
UBDocumentController::~UBDocumentController() UBDocumentController::~UBDocumentController()
{ {

@ -75,6 +75,7 @@ class UBDocumentController : public QObject
void copy(); void copy();
void paste(); void paste();
void focusChanged(QWidget *old, QWidget *current); void focusChanged(QWidget *old, QWidget *current);
void reloadThumbs();
protected: protected:
virtual void setupViews(); virtual void setupViews();

Loading…
Cancel
Save