Skip to content

Commit

Permalink
Fix map canvas current layer is out of sync with layer tree current l…
Browse files Browse the repository at this point in the history
…ayer

(cherry-picked from 444bf12)
  • Loading branch information
nyalldawson committed Aug 21, 2018
1 parent e466294 commit 68b4bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -1736,7 +1736,7 @@ void QgisApp::handleDropUriList( const QgsMimeDataUtils::UriList &lst )
}

mBlockActiveLayerChanged = false;
emit activeLayerChanged( activeLayer() );
onActiveLayerChanged( activeLayer() );
}

bool QgisApp::event( QEvent *event )
Expand Down Expand Up @@ -11002,7 +11002,7 @@ void QgisApp::closeProject()
QgsProject::instance()->clear();
mBlockActiveLayerChanged = false;

emit activeLayerChanged( activeLayer() );
onActiveLayerChanged( activeLayer() );
}


Expand Down

0 comments on commit 68b4bba

Please sign in to comment.