mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-20 00:06:36 -04:00
fixes issue with identical input CRSs, now asks if users wants to proceed anyway
git-svn-id: http://svn.osgeo.org/qgis/trunk@13152 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
857a7951d2
commit
bb9a52a494
@ -65,8 +65,11 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
destLayer = self.getVectorLayerByName(self.cmbLayer.currentText())
|
||||
srsDefine = destLayer.srs()
|
||||
if srsDefine == vLayer.srs():
|
||||
QMessageBox.information(self, self.tr("Define current projection"), self.tr("Identical output spatial reference system chosen"))
|
||||
else:
|
||||
responce = QMessageBox.question(self, self.tr("Define current projection"),
|
||||
self.tr("Identical output spatial reference system chosen\n\nAre you sure you want to proceed?"),
|
||||
QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
|
||||
if responce == QMessageBox.No:
|
||||
return
|
||||
provider = vLayer.dataProvider()
|
||||
self.progressBar.setValue(35)
|
||||
inPath = provider.dataSourceUri()
|
||||
|
Loading…
x
Reference in New Issue
Block a user