File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
python/plugins/GdalTools/tools Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 55from qgis .gui import *
66
77class GdalToolsSRSDialog (QDialog ):
8- def __init__ (self , title , parent ):
8+ def __init__ (self , title , parent = None ):
99 QDialog .__init__ (self , parent )
1010 self .setWindowTitle ( title )
1111
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def fillInputDir( self ):
8484 self .inSelector .setFilename ( inputDir )
8585
8686 def fillDesiredSRSEdit ( self ):
87- dialog = SRSDialog ( "Select desired SRS" )
87+ dialog = SRSDialog ( "Select desired SRS" , self )
8888 if dialog .exec_ ():
8989 self .desiredSRSEdit .setText ( dialog .getProjection () )
9090
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ def refreshTargetSRS(self):
155155 self .targetSRSEdit .setText ( Utils .getRasterSRS ( self , self .getInputFileName () ) )
156156
157157 def fillTargetSRSEdit (self ):
158- dialog = SRSDialog ( "Select the target SRS" )
158+ dialog = SRSDialog ( "Select the target SRS" , self )
159159 if dialog .exec_ ():
160160 self .targetSRSEdit .setText (dialog .getProjection ())
161161
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def fillOutputDir( self ):
141141 self .outSelector .setFilename ( outputDir )
142142
143143 def fillSourceSRSEdit (self ):
144- dialog = SRSDialog ( "Select the source SRS" )
144+ dialog = SRSDialog ( "Select the source SRS" , self )
145145 if dialog .exec_ ():
146146 self .sourceSRSEdit .setText (dialog .getProjection ())
147147
@@ -156,7 +156,7 @@ def refreshSourceSRS(self):
156156 self .sourceSRSCheck .setChecked ( not crs .isEmpty () )
157157
158158 def fillTargetSRSEdit (self ):
159- dialog = SRSDialog ( "Select the target SRS" )
159+ dialog = SRSDialog ( "Select the target SRS" , self )
160160 if dialog .exec_ ():
161161 self .targetSRSEdit .setText (dialog .getProjection ())
162162
You can’t perform that action at this time.
0 commit comments