Skip to content

Commit

Permalink
Remove processEvents() calls that are not necessary anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Nov 27, 2013
1 parent 2b5c903 commit 6ee8a7e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/app/qgisapp.cpp
Expand Up @@ -2437,8 +2437,6 @@ void QgisApp::addVectorLayer()
mMapCanvas->refresh();

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


Expand Down Expand Up @@ -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 )
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -5608,8 +5600,6 @@ QgsVectorLayer * QgisApp::pasteAsNewMemoryVector( const QString & theLayerName )
mMapCanvas->freeze( false );
mMapCanvas->refresh();

qApp->processEvents();

return layer;
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 )
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -8671,8 +8652,6 @@ QgsRasterLayer* QgisApp::addRasterLayerPrivate(

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

0 comments on commit 6ee8a7e

Please sign in to comment.