Skip to content

Commit df2d801

Browse files
committed
set parent opening projection selector dialog (fix #4931)
1 parent 83f95b8 commit df2d801

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

python/plugins/GdalTools/tools/dialogSRS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from qgis.gui import *
66

77
class 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

python/plugins/GdalTools/tools/doProjection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

python/plugins/GdalTools/tools/doTranslate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

python/plugins/GdalTools/tools/doWarp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)