Commit 8b08edc8 authored by Dennis Nienhüser's avatar Dennis Nienhüser

Do not allow multiple instances of a layer at the same time

parent 90fb1ab7
......@@ -251,7 +251,9 @@ void LayerManager::setShowRuntimeTrace( bool show )
void LayerManager::addLayer(LayerInterface *layer)
{
d->m_internalLayers.push_back(layer);
if (!d->m_internalLayers.contains(layer)) {
d->m_internalLayers.push_back(layer);
}
}
void LayerManager::removeLayer(LayerInterface *layer)
......
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