(GUI): strip quotes from path typed into location bar.

This commit is contained in:
morkt 2017-12-15 01:09:21 +04:00
parent 3233cdc18e
commit a54ecc3863

View File

@ -736,6 +736,7 @@ namespace GARbro.GUI
if (e.Key != Key.Return) if (e.Key != Key.Return)
return; return;
string path = (sender as AutoCompleteBox).Text; string path = (sender as AutoCompleteBox).Text;
path = path.Trim (' ', '"');
if (string.IsNullOrEmpty (path)) if (string.IsNullOrEmpty (path))
return; return;
if (FullpathRe.IsMatch (path)) if (FullpathRe.IsMatch (path))