Skip to content
Permalink
Browse files

Fix broken 'hide all layers' UX

  • Loading branch information
nirvn authored and nyalldawson committed Sep 26, 2020
1 parent a2fb7f3 commit 8d2a0d1ebb7dd85c5510546533b4ddfc9653b257
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/app/qgisapp.cpp
@@ -7928,8 +7928,12 @@ void QgisApp::stopRendering()
void QgisApp::hideAllLayers()
{
QgsDebugMsgLevel( QStringLiteral( "hiding all layers!" ), 3 );
mLayerTreeView->layerTreeModel()->rootGroup()->setItemVisibilityCheckedRecursive( false );

const auto constChildren = mLayerTreeView->layerTreeModel()->rootGroup()->children();
for ( QgsLayerTreeNode *node : constChildren )
{
node->setItemVisibilityCheckedRecursive( false );
}
}

void QgisApp::showAllLayers()

0 comments on commit 8d2a0d1

Please sign in to comment.
You can’t perform that action at this time.