From c62c84fbfbb4541dd0dbd8c505ddec5f61286a71 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 26 Apr 2012 16:11:01 +0200 Subject: [PATCH] fixed crash due to the document metadata --- src/document/UBDocumentProxy.cpp | 2 ++ src/gui/UBTeacherGuideWidget.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/document/UBDocumentProxy.cpp b/src/document/UBDocumentProxy.cpp index 67f11b0f..c37f9b28 100644 --- a/src/document/UBDocumentProxy.cpp +++ b/src/document/UBDocumentProxy.cpp @@ -297,6 +297,8 @@ QString UBDocumentProxy::sessionAuthors() QDateTime UBDocumentProxy::documentDate() { + qDebug()<< UBSettings::documentDate; + qDebug()<getCurrentDocument() : 0; if(UBApplication::documentController && UBApplication::boardController->activeSceneIndex() == 0){ - QDateTime creationDate = documentProxy->documentDate(); - mpCreationLabel->setText(tr("Created the:") + creationDate.toString(Qt::SystemLocaleShortDate)); - QDateTime updatedDate = documentProxy->lastUpdate(); - mpLastModifiedLabel->setText(tr("Updated the:") + updatedDate.toString(Qt::SystemLocaleShortDate)); +// QDateTime creationDate = documentProxy->documentDate(); +// mpCreationLabel->setText(tr("Created the:") + creationDate.toString(Qt::SystemLocaleShortDate)); +// QDateTime updatedDate = documentProxy->lastUpdate(); +// mpLastModifiedLabel->setText(tr("Updated the:") + updatedDate.toString(Qt::SystemLocaleShortDate)); } }