This commit is contained in:
Salvatore Larosa 2013-01-08 10:24:07 +01:00
parent 7e29d7ced1
commit 5b06de9935

View File

@ -343,7 +343,7 @@ def dirDialog( parent ):
if not fileDialog.exec_() == QDialog.Accepted: if not fileDialog.exec_() == QDialog.Accepted:
return None, None return None, None
folders = fileDialog.selectedFiles() folders = fileDialog.selectedFiles()
settings.setValue("/UI/lastShapefileDir", QVariant( QFileInfo( unicode( folders.first() ) ) ) ) settings.setValue("/UI/lastShapefileDir", QVariant( QFileInfo( unicode( folders.first() ) ).absolutePath() ) )
return ( unicode( folders.first() ), unicode( fileDialog.encoding() ) ) return ( unicode( folders.first() ), unicode( fileDialog.encoding() ) )
# Return field type from it's name # Return field type from it's name