@@ -2437,8 +2437,6 @@ void QgisApp::addVectorLayer()
2437
2437
mMapCanvas ->refresh ();
2438
2438
2439
2439
delete ovl;
2440
- // update UI
2441
- qApp->processEvents ();
2442
2440
}
2443
2441
2444
2442
@@ -2546,9 +2544,6 @@ bool QgisApp::addVectorLayers( QStringList const & theLayerQStringList, const QS
2546
2544
// Register this layer with the layers registry
2547
2545
QgsMapLayerRegistry::instance ()->addMapLayers ( myList );
2548
2546
2549
- // update UI
2550
- qApp->processEvents ();
2551
-
2552
2547
// Only update the map if we frozen in this method
2553
2548
// Let the caller do it otherwise
2554
2549
if ( !wasfrozen )
@@ -2964,9 +2959,6 @@ void QgisApp::addDatabaseLayers( QStringList const & layerPathList, QString cons
2964
2959
QgsMapLayerRegistry::instance ()->addMapLayers ( myList );
2965
2960
statusBar ()->showMessage ( mMapCanvas ->extent ().toString ( 2 ) );
2966
2961
2967
- // update UI
2968
- qApp->processEvents ();
2969
-
2970
2962
// draw the map
2971
2963
mMapCanvas ->freeze ( false );
2972
2964
mMapCanvas ->refresh ();
@@ -5608,8 +5600,6 @@ QgsVectorLayer * QgisApp::pasteAsNewMemoryVector( const QString & theLayerName )
5608
5600
mMapCanvas ->freeze ( false );
5609
5601
mMapCanvas ->refresh ();
5610
5602
5611
- qApp->processEvents ();
5612
-
5613
5603
return layer;
5614
5604
}
5615
5605
@@ -6488,9 +6478,6 @@ void QgisApp::duplicateLayers( QList<QgsMapLayer *> lyrList )
6488
6478
6489
6479
dupLayer = 0 ;
6490
6480
6491
- // update UI
6492
- qApp->processEvents ();
6493
-
6494
6481
mMapCanvas ->freeze ( false );
6495
6482
6496
6483
// display errors in message bar after duplication of layers
@@ -7056,9 +7043,6 @@ QgsVectorLayer* QgisApp::addVectorLayer( QString vectorLayerPath, QString baseNa
7056
7043
return NULL ;
7057
7044
}
7058
7045
7059
- // update UI
7060
- qApp->processEvents ();
7061
-
7062
7046
// Only update the map if we frozen in this method
7063
7047
// Let the caller do it otherwise
7064
7048
if ( !wasfrozen )
@@ -7100,9 +7084,6 @@ void QgisApp::addMapLayer( QgsMapLayer *theMapLayer )
7100
7084
tr ( " The layer is not a valid layer and can not be added to the map" ) );
7101
7085
}
7102
7086
7103
- // update UI
7104
- qApp->processEvents ();
7105
-
7106
7087
// draw the map
7107
7088
mMapCanvas ->freeze ( false );
7108
7089
mMapCanvas ->refresh ();
@@ -8671,8 +8652,6 @@ QgsRasterLayer* QgisApp::addRasterLayerPrivate(
8671
8652
8672
8653
if ( guiUpdate )
8673
8654
{
8674
- // update UI
8675
- qApp->processEvents ();
8676
8655
// draw the map
8677
8656
mMapCanvas ->freeze ( false );
8678
8657
mMapCanvas ->refresh ();
0 commit comments