Skip to content

Commit a14ed90

Browse files
author
jef
committed
fix #2435
git-svn-id: http://svn.osgeo.org/qgis/trunk@12933 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 91256e5 commit a14ed90

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/app/legend/qgslegend.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,7 @@ bool QgsLegend::checkLayerOrderUpdate()
17121712
{
17131713
// z-order has changed - update layer set
17141714
updateMapCanvasLayerSet();
1715+
emit zOrderChanged();
17151716
return true;
17161717
}
17171718
return false;

src/app/legend/qgslegend.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class QgsLegend : public QTreeWidget
473473
signals:
474474
void itemMoved( QModelIndex oldIndex, QModelIndex newIndex );
475475

476-
void zOrderChanged( QgsLegend * lv );
476+
void zOrderChanged();
477477

478478
//! Emited whenever current (selected) layer changes
479479
// the pointer to layer can be null if no layer is selected

src/app/qgisapp.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1834,6 +1834,7 @@ void QgisApp::setupConnections()
18341834
// track of canvas layers and extents and mark project dirty on changes
18351835
connect( mMapCanvas, SIGNAL( extentsChanged() ), this, SLOT( markDirty() ) );
18361836
connect( mMapCanvas, SIGNAL( layersChanged() ), this, SLOT( markDirty() ) );
1837+
connect( mMapLegend, SIGNAL( zOrderChanged() ), this, SLOT( markDirty() ) );
18371838

18381839
connect( mRenderSuppressionCBox, SIGNAL( toggled( bool ) ), mMapCanvas, SLOT( setRenderFlag( bool ) ) );
18391840
//

0 commit comments

Comments
 (0)