Mercurial > projects > dwt-addons
diff dwtx/jface/preference/PathEditor.d @ 97:0168c579a3f9
Fix path handling, thanks yidabu for reporting.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 01 Aug 2008 07:06:52 +0200 |
parents | 1088ca33d3e0 |
children |
line wrap: on
line diff
--- a/dwtx/jface/preference/PathEditor.d Sat Jul 26 14:39:08 2008 +0200 +++ b/dwtx/jface/preference/PathEditor.d Fri Aug 01 07:06:52 2008 +0200 @@ -15,6 +15,7 @@ import dwtx.jface.preference.ListEditor; import tango.io.FilePath; +static import tango.io.Path; import tango.io.model.IFile; // import java.util.ArrayList; @@ -89,7 +90,7 @@ dialog.setMessage(dirChooserLabelText); } if (lastPath !is null) { - if ((new FilePath(lastPath)).exists()) { + if ((new FilePath(tango.io.Path.standard(lastPath))).exists()) { dialog.setFilterPath(lastPath); } }