Skip to content

Commit

Permalink
[BACKPORT] don't ask for CRS when opening New Shapefile dialog (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 23, 2011
1 parent 9d3b756 commit bd5c901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsnewvectorlayerdialog.cpp
Expand Up @@ -18,6 +18,7 @@
#include "qgsnewvectorlayerdialog.h"
#include "qgsapplication.h"
//#include "qgisapp.h" // <- for theme icons
#include "qgis.h"
#include "qgslogger.h"
#include "qgscoordinatereferencesystem.h"
#include "qgsgenericprojectionselector.h"
Expand Down Expand Up @@ -61,6 +62,7 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
mAttributeView->addTopLevelItem( new QTreeWidgetItem( QStringList() << "id" << "Integer" << "10" << "" ) );

QgsCoordinateReferenceSystem srs;
srs.createFromOgcWmsCrs( GEO_EPSG_CRS_AUTHID );
srs.validate();

mCrsId = srs.srsid();
Expand Down

0 comments on commit bd5c901

Please sign in to comment.