diff --git a/src/adaptors/UBSvgSubsetAdaptor.cpp b/src/adaptors/UBSvgSubsetAdaptor.cpp index ee5c1aae..9b9deaf7 100644 --- a/src/adaptors/UBSvgSubsetAdaptor.cpp +++ b/src/adaptors/UBSvgSubsetAdaptor.cpp @@ -811,11 +811,11 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene() scene->setModified(false); } - if (annotationGroup) - { - if (annotationGroup->polygons().empty()) - delete annotationGroup; - } + if (annotationGroup) + { + if (annotationGroup->polygons().empty()) + delete annotationGroup; + } return scene; } diff --git a/src/gui/UBCachePropertiesWidget.cpp b/src/gui/UBCachePropertiesWidget.cpp index 6b7062f8..760ce652 100644 --- a/src/gui/UBCachePropertiesWidget.cpp +++ b/src/gui/UBCachePropertiesWidget.cpp @@ -61,8 +61,6 @@ UBCachePropertiesWidget::UBCachePropertiesWidget(QWidget *parent, const char *na mpColorLabel = new QLabel(tr("Color:"), mpProperties); mpColor = new QPushButton(mpProperties); mpColor->setObjectName("DockPaletteWidgetButton"); - // TODO: Check in the document if the page has a color and assign it to this cache - // else set the black color by default updateCacheColor(Qt::black); mpColorLayout->addWidget(mpColorLabel, 0); mpColorLayout->addWidget(mpColor, 0); @@ -86,7 +84,6 @@ UBCachePropertiesWidget::UBCachePropertiesWidget(QWidget *parent, const char *na mpShapeLayout->addStretch(1); mpPropertiesLayout->addLayout(mpShapeLayout, 0); - // TODO: Check in the document which shape is saved and check the corresponding button mpCircleButton->setChecked(true); // Shape Size @@ -111,6 +108,9 @@ UBCachePropertiesWidget::UBCachePropertiesWidget(QWidget *parent, const char *na // Fill the empty space mpPropertiesLayout->addStretch(1); + // Get the infos from the current cache + // ... + // Connect signals / slots connect(mpCloseButton, SIGNAL(clicked()), this, SLOT(onCloseClicked())); connect(mpColor, SIGNAL(clicked()), this, SLOT(onColorClicked())); @@ -277,6 +277,7 @@ void UBCachePropertiesWidget::updateCurrentCache() { if("Cache" == it->data(Qt::UserRole).toString()) { + qDebug() << ">>> Setting cache parameters"; setEnabled(true); mpCurrentCache = dynamic_cast(it); if((NULL != mpCurrentCache) && (!mCaches.contains(mpCurrentCache))) diff --git a/src/gui/UBPageNavigationWidget.cpp b/src/gui/UBPageNavigationWidget.cpp index 6d7896af..557f86b0 100644 --- a/src/gui/UBPageNavigationWidget.cpp +++ b/src/gui/UBPageNavigationWidget.cpp @@ -113,6 +113,7 @@ void UBPageNavigationWidget::setDocument(UBDocumentProxy *document) if(mNavigator->currentDoc() != document) { mNavigator->setDocument(document); + UBApplication::boardController->notifyPageChanged(); } }