Skip to content

Commit

Permalink
fix #2435
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12933 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 12, 2010
1 parent 91256e5 commit a14ed90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/legend/qgslegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,7 @@ bool QgsLegend::checkLayerOrderUpdate()
{
// z-order has changed - update layer set
updateMapCanvasLayerSet();
emit zOrderChanged();
return true;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/app/legend/qgslegend.h
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class QgsLegend : public QTreeWidget
signals:
void itemMoved( QModelIndex oldIndex, QModelIndex newIndex );

void zOrderChanged( QgsLegend * lv );
void zOrderChanged();

//! Emited whenever current (selected) layer changes
// the pointer to layer can be null if no layer is selected
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1834,6 +1834,7 @@ void QgisApp::setupConnections()
// track of canvas layers and extents and mark project dirty on changes
connect( mMapCanvas, SIGNAL( extentsChanged() ), this, SLOT( markDirty() ) );
connect( mMapCanvas, SIGNAL( layersChanged() ), this, SLOT( markDirty() ) );
connect( mMapLegend, SIGNAL( zOrderChanged() ), this, SLOT( markDirty() ) );

connect( mRenderSuppressionCBox, SIGNAL( toggled( bool ) ), mMapCanvas, SLOT( setRenderFlag( bool ) ) );
//
Expand Down

0 comments on commit a14ed90

Please sign in to comment.