Commit 98b48dbe authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix warnings about broken connections when importing frames

parent 4a5d895a
...@@ -268,9 +268,10 @@ void KisShapeController::setImage(KisImageWSP image) ...@@ -268,9 +268,10 @@ void KisShapeController::setImage(KisImageWSP image)
{ {
m_d->imageConnections.clear(); m_d->imageConnections.clear();
m_d->imageConnections.addConnection(image, SIGNAL(sigResolutionChanged(double, double)), this, SLOT(slotUpdateDocumentResolution())); if (image) {
m_d->imageConnections.addConnection(image, SIGNAL(sigSizeChanged(QPointF, QPointF)), this, SLOT(slotUpdateDocumentSize())); m_d->imageConnections.addConnection(image, SIGNAL(sigResolutionChanged(double, double)), this, SLOT(slotUpdateDocumentResolution()));
m_d->imageConnections.addConnection(image, SIGNAL(sigSizeChanged(QPointF, QPointF)), this, SLOT(slotUpdateDocumentSize()));
}
slotUpdateDocumentResolution(); slotUpdateDocumentResolution();
slotUpdateDocumentSize(); slotUpdateDocumentSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment