mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
fix #5097
This commit is contained in:
parent
a8731244ee
commit
91da6af5ac
@ -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 )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user