Skip to content

Commit 444bf12

Browse files
committed
Fix map canvas current layer is out of sync with layer tree current layer
1 parent e6fcce4 commit 444bf12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ void QgisApp::handleDropUriList( const QgsMimeDataUtils::UriList &lst )
17591759
}
17601760

17611761
mBlockActiveLayerChanged = false;
1762-
emit activeLayerChanged( activeLayer() );
1762+
onActiveLayerChanged( activeLayer() );
17631763
}
17641764

17651765
bool QgisApp::event( QEvent *event )
@@ -11126,7 +11126,7 @@ void QgisApp::closeProject()
1112611126
QgsProject::instance()->clear();
1112711127
mBlockActiveLayerChanged = false;
1112811128

11129-
emit activeLayerChanged( activeLayer() );
11129+
onActiveLayerChanged( activeLayer() );
1113011130
}
1113111131

1113211132

0 commit comments

Comments
 (0)