Skip to content
Snippets Groups Projects
Commit 3038e95f authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Fixed missing refresh of image-view when layer has been deleted from layer-stack.

parent 0fd5709e
No related branches found
No related tags found
No related merge requests found
......@@ -187,6 +187,14 @@ ImageViewWidget
this,
SLOT( UpdateScene() )
);
QObject::disconnect(
model,
SIGNAL( ContentChanged() ),
// from:
this,
SLOT( updateGL() )
);
}
}
......@@ -224,6 +232,14 @@ ImageViewWidget
SLOT( UpdateScene() )
);
QObject::connect(
stackedLayerModel,
SIGNAL( ContentChanged() ),
// to:
this,
SLOT( updateGL() )
);
QObject::connect(
stackedLayerModel,
SIGNAL( ReferenceChanged( size_t ) ),
......@@ -465,7 +481,7 @@ ImageViewWidget
{
QGLWidget::paintGL();
qDebug() << this << "::paintGL()";
// qDebug() << this << "::paintGL()";
//
// Get new rendering-context.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment