Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not refresh overview twice on a change
  • Loading branch information
wonder-sk committed Feb 25, 2014
1 parent 1732db5 commit 48c1b57
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/app/legend/qgslegend.cpp
Expand Up @@ -2445,11 +2445,6 @@ void QgsLegend::updateMapCanvasLayerSet()
mMapCanvas->setLayerSet( layers );
}

void QgsLegend::updateOverview()
{
mMapCanvas->updateOverview();
}

void QgsLegend::enableOverviewModeAllLayers( bool isInOverview )
{
for ( QTreeWidgetItem* theItem = firstItem(); theItem; theItem = nextItem( theItem ) )
Expand All @@ -2462,7 +2457,6 @@ void QgsLegend::enableOverviewModeAllLayers( bool isInOverview )

}
updateMapCanvasLayerSet();
updateOverview();
}

QStringList QgsLegend::layerIDs()
Expand Down
3 changes: 0 additions & 3 deletions src/app/legend/qgslegend.h
Expand Up @@ -206,9 +206,6 @@ class QgsLegend : public QTreeWidget
/**Updates layer set of map canvas*/
void updateMapCanvasLayerSet();

/**Updates overview*/
void updateOverview();

/**Show/remove all layer in/from overview*/
void enableOverviewModeAllLayers( bool isInOverview );

Expand Down
1 change: 0 additions & 1 deletion src/app/legend/qgslegendlayer.cpp
Expand Up @@ -494,7 +494,6 @@ void QgsLegendLayer::showInOverview()
setInOverview( ! isInOverview() );

legend()->updateMapCanvasLayerSet();
legend()->updateOverview();
}

QString QgsLegendLayer::nameFromLayer( QgsMapLayer* layer )
Expand Down

0 comments on commit 48c1b57

Please sign in to comment.