Skip to content
Permalink
Browse files

Remove processEvents() calls that are not necessary anymore

  • Loading branch information
wonder-sk committed Nov 27, 2013
1 parent 2b5c903 commit 6ee8a7e6f88012a9286e6aba4f01a62a381bcb96
Showing with 0 additions and 21 deletions.
  1. +0 −21 src/app/qgisapp.cpp
@@ -2437,8 +2437,6 @@ void QgisApp::addVectorLayer()
mMapCanvas->refresh();

delete ovl;
// update UI
qApp->processEvents();
}


@@ -2546,9 +2544,6 @@ bool QgisApp::addVectorLayers( QStringList const & theLayerQStringList, const QS
// Register this layer with the layers registry
QgsMapLayerRegistry::instance()->addMapLayers( myList );

// update UI
qApp->processEvents();

// Only update the map if we frozen in this method
// Let the caller do it otherwise
if ( !wasfrozen )
@@ -2964,9 +2959,6 @@ void QgisApp::addDatabaseLayers( QStringList const & layerPathList, QString cons
QgsMapLayerRegistry::instance()->addMapLayers( myList );
statusBar()->showMessage( mMapCanvas->extent().toString( 2 ) );

// update UI
qApp->processEvents();

// draw the map
mMapCanvas->freeze( false );
mMapCanvas->refresh();
@@ -5608,8 +5600,6 @@ QgsVectorLayer * QgisApp::pasteAsNewMemoryVector( const QString & theLayerName )
mMapCanvas->freeze( false );
mMapCanvas->refresh();

qApp->processEvents();

return layer;
}

@@ -6488,9 +6478,6 @@ void QgisApp::duplicateLayers( QList<QgsMapLayer *> lyrList )

dupLayer = 0;

// update UI
qApp->processEvents();

mMapCanvas->freeze( false );

// display errors in message bar after duplication of layers
@@ -7056,9 +7043,6 @@ QgsVectorLayer* QgisApp::addVectorLayer( QString vectorLayerPath, QString baseNa
return NULL;
}

// update UI
qApp->processEvents();

// Only update the map if we frozen in this method
// Let the caller do it otherwise
if ( !wasfrozen )
@@ -7100,9 +7084,6 @@ void QgisApp::addMapLayer( QgsMapLayer *theMapLayer )
tr( "The layer is not a valid layer and can not be added to the map" ) );
}

// update UI
qApp->processEvents();

// draw the map
mMapCanvas->freeze( false );
mMapCanvas->refresh();
@@ -8671,8 +8652,6 @@ QgsRasterLayer* QgisApp::addRasterLayerPrivate(

if ( guiUpdate )
{
// update UI
qApp->processEvents();
// draw the map
mMapCanvas->freeze( false );
mMapCanvas->refresh();

0 comments on commit 6ee8a7e

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