Skip to content
Permalink
Browse files
Fix map not refreshed when deselecting/inverting selection (fix #16365)
  • Loading branch information
nyalldawson committed Mar 20, 2017
1 parent 0d3cf57 commit 0ed1414885e49f6df26c3aed80970a9de94ea3b3
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/app/qgisapp.cpp
@@ -7582,6 +7582,7 @@ void QgisApp::deselectAll()
// Turn on rendering (if it was on previously)
if ( !wasFrozen )
freezeCanvases( false );
refreshMapCanvas();
}

void QgisApp::invertSelection()
@@ -7597,15 +7598,7 @@ void QgisApp::invertSelection()
return;
}

// Turn off rendering to improve speed.
bool wasFrozen = mMapCanvas->isFrozen();
freezeCanvases();

vlayer->invertSelection();

// Turn on rendering (if it was on previously)
if ( !wasFrozen )
freezeCanvases( false );
}

void QgisApp::selectAll()
@@ -9890,6 +9883,7 @@ void QgisApp::closeProject()
mMapCanvas->setLayers( QList<QgsMapLayer *>() );
mMapCanvas->clearCache();
mOverviewCanvas->setLayers( QList<QgsMapLayer *>() );
mMapCanvas->freeze( false );
removeAllLayers();
}

1 comment on commit 0ed1414

@rduivenvoorde

This comment has been minimized.

Copy link
Contributor

@rduivenvoorde rduivenvoorde commented on 0ed1414 Mar 20, 2017

Hi Nyall,

thanks for fixing this, so quick.

the other part of #16365 is about the strange behaviour of the icons. Do you want me to create an other issue for that one?

Please sign in to comment.