set parent opening projection selector dialog (fix #4931)

This commit is contained in:
Giuseppe Sucameli 2012-02-01 13:01:22 +01:00
parent 83f95b8fa7
commit df2d80195d
4 changed files with 5 additions and 5 deletions

View File

@ -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 )

View File

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

View File

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

View File

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