Skip to content

Commit 91da6af

Browse files
committed
fix #5097
1 parent a873124 commit 91da6af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/plugins/fTools/tools/doMergeShapes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ def __init__( self, iface ):
3030
QObject.connect( self.leOutShape, SIGNAL( "editingFinished()" ), self.updateOutFile )
3131

3232
def inputDir( self ):
33+
settings = QSettings()
34+
lastDir = settings.value( "/fTools/lastShapeDir", "." ).toString()
3335
inDir = QFileDialog.getExistingDirectory( self,
3436
self.tr( "Select directory with shapefiles to merge" ),
35-
"." )
37+
lastDir )
3638

3739
if inDir.isEmpty():
3840
return
@@ -48,6 +50,8 @@ def inputDir( self ):
4850
self.inputFiles = None
4951
return
5052

53+
settings.setValue( "/fTools/lastShapeDir", inDir )
54+
5155
self.progressFiles.setRange( 0, self.inputFiles.count() )
5256
self.leInputDir.setText( inDir )
5357

0 commit comments

Comments
 (0)