Skip to content

Commit

Permalink
Do not show layer extent in the status bar after the load (useless)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jun 2, 2014
1 parent 2ffe3ce commit ca73eaa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3135,7 +3135,6 @@ void QgisApp::addDatabaseLayers( QStringList const & layerPathList, QString cons
}

QgsMapLayerRegistry::instance()->addMapLayers( myList );
statusBar()->showMessage( mMapCanvas->extent().toString( 2 ) );

// draw the map
mMapCanvas->freeze( false );
Expand Down Expand Up @@ -7529,7 +7528,6 @@ QgsVectorLayer* QgisApp::addVectorLayer( QString vectorLayerPath, QString baseNa
QList<QgsMapLayer *> myList;
myList << layer;
QgsMapLayerRegistry::instance()->addMapLayers( myList );
statusBar()->showMessage( mMapCanvas->extent().toString( 2 ) );
}
}
else
Expand Down Expand Up @@ -7574,8 +7572,6 @@ void QgisApp::addMapLayer( QgsMapLayer *theMapLayer )
QgsMapLayerRegistry::instance()->addMapLayers( myList );
// add it to the mapcanvas collection
// not necessary since adding to registry adds to canvas mMapCanvas->addLayer(theMapLayer);

statusBar()->showMessage( mMapCanvas->extent().toString( 2 ) );
}
else
{
Expand Down Expand Up @@ -9213,8 +9209,6 @@ QgsRasterLayer* QgisApp::addRasterLayerPrivate(
// draw the map
mMapCanvas->freeze( false );
mMapCanvas->refresh();
//update status
statusBar()->showMessage( mMapCanvas->extent().toString( 2 ) );
// Let render() do its own cursor management
// QApplication::restoreOverrideCursor();
}
Expand Down Expand Up @@ -9336,7 +9330,6 @@ bool QgisApp::addRasterLayers( QStringList const &theFileNameQStringList, bool g
}
}

statusBar()->showMessage( mMapCanvas->extent().toString( 2 ) );
mMapCanvas->freeze( false );
mMapCanvas->refresh();

Expand Down
2 changes: 0 additions & 2 deletions src/plugins/sqlanywhere/sqlanywhere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ void SqlAnywhere::addSqlAnywhereLayer()
}

QApplication::restoreOverrideCursor();

(( QMainWindow * ) mQGisIface->mainWindow() )->statusBar()->showMessage( mMapCanvas->extent().toString( 2 ) );
}

delete dbs;
Expand Down

0 comments on commit ca73eaa

Please sign in to comment.