Skip to content
Permalink
Browse files

set parent opening projection selector dialog (fix #4931)

  • Loading branch information
brushtyler committed Feb 1, 2012
1 parent 83f95b8 commit df2d80195d1582268798a1002c15c10f0f9198b2
@@ -5,7 +5,7 @@
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 @@ def fillInputDir( self ):
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 @@ def refreshTargetSRS(self):
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 @@ def fillOutputDir( self ):
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 @@ def refreshSourceSRS(self):
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())

0 comments on commit df2d801

Please sign in to comment.
You can’t perform that action at this time.