@@ -296,7 +296,7 @@ void QgsLegend::removeAll()
296
296
297
297
void QgsLegend::setLayersVisible ( bool visible )
298
298
{
299
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
299
+ if ( !mMapCanvas )
300
300
{
301
301
return ;
302
302
}
@@ -780,7 +780,7 @@ void QgsLegend::mouseDoubleClickEvent( QMouseEvent *e )
780
780
781
781
void QgsLegend::handleRightClickEvent ( QTreeWidgetItem* item, const QPoint& position )
782
782
{
783
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
783
+ if ( !mMapCanvas )
784
784
{
785
785
return ;
786
786
}
@@ -1079,7 +1079,7 @@ int QgsLegend::getItemPos( QTreeWidgetItem* item )
1079
1079
void QgsLegend::addLayers ( QList<QgsMapLayer *> theLayerList )
1080
1080
{
1081
1081
QgsDebugMsg ( " Entering." );
1082
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
1082
+ if ( !mMapCanvas )
1083
1083
{
1084
1084
return ;
1085
1085
}
@@ -1551,7 +1551,7 @@ bool QgsLegend::setCurrentLayer( QgsMapLayer *layer )
1551
1551
1552
1552
void QgsLegend::legendGroupRemove ()
1553
1553
{
1554
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
1554
+ if ( !mMapCanvas )
1555
1555
{
1556
1556
return ;
1557
1557
}
@@ -1571,7 +1571,7 @@ void QgsLegend::legendGroupRemove()
1571
1571
1572
1572
void QgsLegend::legendGroupSetCRS ()
1573
1573
{
1574
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
1574
+ if ( !mMapCanvas )
1575
1575
{
1576
1576
return ;
1577
1577
}
@@ -1595,7 +1595,7 @@ void QgsLegend::legendGroupSetCRS()
1595
1595
1596
1596
void QgsLegend::removeGroup ( QgsLegendGroup *lg )
1597
1597
{
1598
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
1598
+ if ( !mMapCanvas )
1599
1599
{
1600
1600
return ;
1601
1601
}
@@ -1625,7 +1625,7 @@ void QgsLegend::removeGroup( QgsLegendGroup *lg )
1625
1625
1626
1626
void QgsLegend::setGroupCRS ( QgsLegendGroup *lg, const QgsCoordinateReferenceSystem &crs )
1627
1627
{
1628
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
1628
+ if ( !mMapCanvas )
1629
1629
{
1630
1630
return ;
1631
1631
}
@@ -1680,7 +1680,7 @@ void QgsLegend::moveLayer( QgsMapLayer *ml, int groupIndex )
1680
1680
1681
1681
void QgsLegend::legendLayerShowInOverview ()
1682
1682
{
1683
- if ( !mMapCanvas || mMapCanvas -> isDrawing () )
1683
+ if ( !mMapCanvas )
1684
1684
{
1685
1685
return ;
1686
1686
}
0 commit comments