@@ -2437,8 +2437,6 @@ void QgisApp::addVectorLayer()
24372437 mMapCanvas ->refresh ();
24382438
24392439 delete ovl;
2440- // update UI
2441- qApp->processEvents ();
24422440}
24432441
24442442
@@ -2546,9 +2544,6 @@ bool QgisApp::addVectorLayers( QStringList const & theLayerQStringList, const QS
25462544 // Register this layer with the layers registry
25472545 QgsMapLayerRegistry::instance ()->addMapLayers ( myList );
25482546
2549- // update UI
2550- qApp->processEvents ();
2551-
25522547 // Only update the map if we frozen in this method
25532548 // Let the caller do it otherwise
25542549 if ( !wasfrozen )
@@ -2964,9 +2959,6 @@ void QgisApp::addDatabaseLayers( QStringList const & layerPathList, QString cons
29642959 QgsMapLayerRegistry::instance ()->addMapLayers ( myList );
29652960 statusBar ()->showMessage ( mMapCanvas ->extent ().toString ( 2 ) );
29662961
2967- // update UI
2968- qApp->processEvents ();
2969-
29702962 // draw the map
29712963 mMapCanvas ->freeze ( false );
29722964 mMapCanvas ->refresh ();
@@ -5608,8 +5600,6 @@ QgsVectorLayer * QgisApp::pasteAsNewMemoryVector( const QString & theLayerName )
56085600 mMapCanvas ->freeze ( false );
56095601 mMapCanvas ->refresh ();
56105602
5611- qApp->processEvents ();
5612-
56135603 return layer;
56145604}
56155605
@@ -6488,9 +6478,6 @@ void QgisApp::duplicateLayers( QList<QgsMapLayer *> lyrList )
64886478
64896479 dupLayer = 0 ;
64906480
6491- // update UI
6492- qApp->processEvents ();
6493-
64946481 mMapCanvas ->freeze ( false );
64956482
64966483 // display errors in message bar after duplication of layers
@@ -7056,9 +7043,6 @@ QgsVectorLayer* QgisApp::addVectorLayer( QString vectorLayerPath, QString baseNa
70567043 return NULL ;
70577044 }
70587045
7059- // update UI
7060- qApp->processEvents ();
7061-
70627046 // Only update the map if we frozen in this method
70637047 // Let the caller do it otherwise
70647048 if ( !wasfrozen )
@@ -7100,9 +7084,6 @@ void QgisApp::addMapLayer( QgsMapLayer *theMapLayer )
71007084 tr ( " The layer is not a valid layer and can not be added to the map" ) );
71017085 }
71027086
7103- // update UI
7104- qApp->processEvents ();
7105-
71067087 // draw the map
71077088 mMapCanvas ->freeze ( false );
71087089 mMapCanvas ->refresh ();
@@ -8671,8 +8652,6 @@ QgsRasterLayer* QgisApp::addRasterLayerPrivate(
86718652
86728653 if ( guiUpdate )
86738654 {
8674- // update UI
8675- qApp->processEvents ();
86768655 // draw the map
86778656 mMapCanvas ->freeze ( false );
86788657 mMapCanvas ->refresh ();
0 commit comments