Skip to content
Permalink
Browse files
fix #5097
  • Loading branch information
alexbruy committed Mar 9, 2012
1 parent a873124 commit 91da6af5acf4ea09218a495a1ea85dc0ccae267e
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/fTools/tools/doMergeShapes.py
@@ -30,9 +30,11 @@ def __init__( self, iface ):
QObject.connect( self.leOutShape, SIGNAL( "editingFinished()" ), self.updateOutFile )

def inputDir( self ):
settings = QSettings()
lastDir = settings.value( "/fTools/lastShapeDir", "." ).toString()
inDir = QFileDialog.getExistingDirectory( self,
self.tr( "Select directory with shapefiles to merge" ),
"." )
lastDir )

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

settings.setValue( "/fTools/lastShapeDir", inDir )

self.progressFiles.setRange( 0, self.inputFiles.count() )
self.leInputDir.setText( inDir )

0 comments on commit 91da6af

Please sign in to comment.