Skip to content

Commit e96ff4a

Browse files
committedSep 10, 2014
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
1 parent edd64c4 commit e96ff4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2327,7 +2327,7 @@ void QgisApp::initLayerTreeView()
23272327
// visibility groups tool button
23282328
QToolButton* btnVisibilityGroups = new QToolButton;
23292329
btnVisibilityGroups->setAutoRaise( true );
2330-
btnVisibilityGroups->setToolTip( tr( "Manage Layer Visibility") );
2330+
btnVisibilityGroups->setToolTip( tr( "Manage Layer Visibility" ) );
23312331
btnVisibilityGroups->setIcon( QgsApplication::getThemeIcon( "/mActionShowAllLayers.png" ) );
23322332
btnVisibilityGroups->setPopupMode( QToolButton::InstantPopup );
23332333
btnVisibilityGroups->setMenu( QgsVisibilityGroups::instance()->menu() );
@@ -7848,6 +7848,9 @@ void QgisApp::closeProject()
78487848
removeAnnotationItems();
78497849
// clear out any stuff from project
78507850
mMapCanvas->freeze( true );
7851+
QList<QgsMapCanvasLayer> emptyList;
7852+
mMapCanvas->setLayerSet( emptyList );
7853+
mMapCanvas->clearCache();
78517854
removeAllLayers();
78527855
}
78537856

0 commit comments

Comments
 (0)
Please sign in to comment.