Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #5097
  • Loading branch information
alexbruy committed Mar 10, 2012
1 parent 32a6de7 commit 63b8017
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/plugins/fTools/tools/doMergeShapes.py
Expand Up @@ -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
Expand All @@ -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 )

Expand Down

0 comments on commit 63b8017

Please sign in to comment.