Skip to content
Permalink
Browse files

Do not refresh overview twice on a change

  • Loading branch information
wonder-sk committed Feb 25, 2014
1 parent 1732db5 commit 48c1b57664ea6924afff179257c490a859583ddf
Showing with 0 additions and 10 deletions.
  1. +0 −6 src/app/legend/qgslegend.cpp
  2. +0 −3 src/app/legend/qgslegend.h
  3. +0 −1 src/app/legend/qgslegendlayer.cpp
@@ -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 ) )
@@ -2462,7 +2457,6 @@ void QgsLegend::enableOverviewModeAllLayers( bool isInOverview )

}
updateMapCanvasLayerSet();
updateOverview();
}

QStringList QgsLegend::layerIDs()
@@ -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 );

@@ -494,7 +494,6 @@ void QgsLegendLayer::showInOverview()
setInOverview( ! isInOverview() );

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

QString QgsLegendLayer::nameFromLayer( QgsMapLayer* layer )

0 comments on commit 48c1b57

Please sign in to comment.
You can’t perform that action at this time.