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
  • Loading branch information
nyalldawson committed Aug 20, 2018
1 parent e6fcce4 commit 444bf12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -1759,7 +1759,7 @@ void QgisApp::handleDropUriList( const QgsMimeDataUtils::UriList &lst )
}

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

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

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


Expand Down

1 comment on commit 444bf12

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 444bf12 Aug 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.