Skip to content

Commit

Permalink
fix #5097
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 9, 2012
1 parent a873124 commit 91da6af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/plugins/fTools/tools/doMergeShapes.py
Original file line number Diff line number Diff line change
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 91da6af

Please sign in to comment.