mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
set parent opening projection selector dialog (fix #4931)
This commit is contained in:
parent
83f95b8fa7
commit
df2d80195d
@ -5,7 +5,7 @@ from qgis.core import *
|
||||
from qgis.gui import *
|
||||
|
||||
class GdalToolsSRSDialog(QDialog):
|
||||
def __init__(self, title, parent):
|
||||
def __init__(self, title, parent=None):
|
||||
QDialog.__init__(self, parent)
|
||||
self.setWindowTitle( title )
|
||||
|
||||
|
@ -84,7 +84,7 @@ class GdalToolsDialog( QWidget, Ui_Widget, BaseBatchWidget ):
|
||||
self.inSelector.setFilename( inputDir )
|
||||
|
||||
def fillDesiredSRSEdit( self ):
|
||||
dialog = SRSDialog( "Select desired SRS" )
|
||||
dialog = SRSDialog( "Select desired SRS", self )
|
||||
if dialog.exec_():
|
||||
self.desiredSRSEdit.setText( dialog.getProjection() )
|
||||
|
||||
|
@ -155,7 +155,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BaseBatchWidget):
|
||||
self.targetSRSEdit.setText( Utils.getRasterSRS( self, self.getInputFileName() ) )
|
||||
|
||||
def fillTargetSRSEdit(self):
|
||||
dialog = SRSDialog( "Select the target SRS" )
|
||||
dialog = SRSDialog( "Select the target SRS", self )
|
||||
if dialog.exec_():
|
||||
self.targetSRSEdit.setText(dialog.getProjection())
|
||||
|
||||
|
@ -141,7 +141,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BaseBatchWidget):
|
||||
self.outSelector.setFilename( outputDir )
|
||||
|
||||
def fillSourceSRSEdit(self):
|
||||
dialog = SRSDialog( "Select the source SRS" )
|
||||
dialog = SRSDialog( "Select the source SRS", self )
|
||||
if dialog.exec_():
|
||||
self.sourceSRSEdit.setText(dialog.getProjection())
|
||||
|
||||
@ -156,7 +156,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BaseBatchWidget):
|
||||
self.sourceSRSCheck.setChecked( not crs.isEmpty() )
|
||||
|
||||
def fillTargetSRSEdit(self):
|
||||
dialog = SRSDialog( "Select the target SRS" )
|
||||
dialog = SRSDialog( "Select the target SRS", self )
|
||||
if dialog.exec_():
|
||||
self.targetSRSEdit.setText(dialog.getProjection())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user