Fixed the issue SANKORE-19: a crash occured while opening a page containing an application

preferencesAboutTextFull
shibakaneki 14 years ago
parent fdd202001b
commit 763a4fcf1d
  1. 6
      src/board/UBBoardController.cpp
  2. 3
      src/domain/UBGraphicsTextItemDelegate.cpp
  3. 21
      src/transition/UniboardSankoreTransition.cpp

@ -1132,11 +1132,11 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
UBGraphicsTextItem::lastUsedTextColor = QColor();
}
if (sceneChange)
emit activeSceneChanged();
// Notify the navigator palette that the document has changed
mPaletteManager->navigatorPalette()->setDocument(pDocumentProxy);
if (sceneChange)
emit activeSceneChanged();
}

@ -58,7 +58,8 @@ void UBGraphicsTextItemDelegate::contentsChanged()
delegated()->contentsChanged();
}
// This method is used to filter the available fonts. Only the web-compliant fonts
// will remain in the font list.
void UBGraphicsTextItemDelegate::customize(QFontDialog &fontDialog)
{
fontDialog.setOption(QFontDialog::DontUseNativeDialog);

@ -7,20 +7,25 @@
UniboardSankoreTransition::UniboardSankoreTransition(QObject *parent) :
QObject(parent)
, mTransitionDlg(NULL)
{
mOldSankoreDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation));
// mOldSankoreDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation));
mUniboardSourceDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation));
#if defined(Q_WS_MACX)
mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Uniboard");
#else
mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Mnemis/Uniboard");
#endif
connect(this, SIGNAL(docAdded(UBDocumentProxy*)), UBPersistenceManager::persistenceManager(), SIGNAL(documentCreated(UBDocumentProxy*)));
// mUniboardSourceDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation));
//#if defined(Q_WS_MACX)
// mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Uniboard");
//#else
// mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Mnemis/Uniboard");
//#endif
// connect(this, SIGNAL(docAdded(UBDocumentProxy*)), UBPersistenceManager::persistenceManager(), SIGNAL(documentCreated(UBDocumentProxy*)));
}
UniboardSankoreTransition::~UniboardSankoreTransition()
{
if(NULL != mTransitionDlg)
{
delete mTransitionDlg;
mTransitionDlg = NULL;
}
}
void UniboardSankoreTransition::rollbackDocumentsTransition(QFileInfoList& fileInfoList)

Loading…
Cancel
Save