Skip to content
Permalink
Browse files

Fix #11169 (toggling symbol visibility does not trigger refresh)

This could have happened when the same project was reloaded, then map canvas
failed to clear itself and some connections to repaintRequested were broken
  • Loading branch information
wonder-sk committed Sep 10, 2014
1 parent edd64c4 commit e96ff4aac8779c4cd220001ac0575b6cbbec65f5
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/app/qgisapp.cpp
@@ -2327,7 +2327,7 @@ void QgisApp::initLayerTreeView()
// visibility groups tool button
QToolButton* btnVisibilityGroups = new QToolButton;
btnVisibilityGroups->setAutoRaise( true );
btnVisibilityGroups->setToolTip( tr( "Manage Layer Visibility") );
btnVisibilityGroups->setToolTip( tr( "Manage Layer Visibility" ) );
btnVisibilityGroups->setIcon( QgsApplication::getThemeIcon( "/mActionShowAllLayers.png" ) );
btnVisibilityGroups->setPopupMode( QToolButton::InstantPopup );
btnVisibilityGroups->setMenu( QgsVisibilityGroups::instance()->menu() );
@@ -7848,6 +7848,9 @@ void QgisApp::closeProject()
removeAnnotationItems();
// clear out any stuff from project
mMapCanvas->freeze( true );
QList<QgsMapCanvasLayer> emptyList;
mMapCanvas->setLayerSet( emptyList );
mMapCanvas->clearCache();
removeAllLayers();
}

0 comments on commit e96ff4a

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