The following commit has been merged in the master branch:
commit 91da6af5acf4ea09218a495a1ea85dc0ccae267e
Author: Alexander Bruy <alexander.b...@gmail.com>
Date:   Fri Mar 9 10:39:42 2012 +0200

    fix #5097

diff --git a/python/plugins/fTools/tools/doMergeShapes.py 
b/python/plugins/fTools/tools/doMergeShapes.py
index fe600e0..a5a3b52 100644
--- a/python/plugins/fTools/tools/doMergeShapes.py
+++ b/python/plugins/fTools/tools/doMergeShapes.py
@@ -30,9 +30,11 @@ class Dialog( QDialog, Ui_Dialog ):
     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 @@ class Dialog( QDialog, Ui_Dialog ):
       self.inputFiles = None
       return
 
+    settings.setValue( "/fTools/lastShapeDir", inDir )
+
     self.progressFiles.setRange( 0, self.inputFiles.count() )
     self.leInputDir.setText( inDir )
 

-- 
The Quantum GIS in Debian project

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to