Skip to content

Commit

Permalink
set parent opening projection selector dialog (fix #4931)
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Feb 1, 2012
1 parent 83f95b8 commit df2d801
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/tools/dialogSRS.py
Expand Up @@ -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 )

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/tools/doProjection.py
Expand Up @@ -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() )

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/tools/doTranslate.py
Expand Up @@ -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())

Expand Down
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/tools/doWarp.py
Expand Up @@ -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())

Expand All @@ -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())

Expand Down

0 comments on commit df2d801

Please sign in to comment.