Fix UNC path with quotes handling in folder & file Open/Save dialog

Remove a workaround for double backslash that leads to problems.
Originally, the double backslash workaround was needed to address #5368.
But now, the app isn't stuck when such path is used, so the problem is gone.

Fix #9582, close #9666
pull/9669/head
mere-human 2021-03-16 23:00:10 +02:00 committed by Don HO
parent f44e6c4c06
commit cd738bcff7
1 changed files with 0 additions and 12 deletions

View File

@ -391,18 +391,6 @@ private:
return eq;
},
'\\');
// If there are two or more double backslash, then change it to single.
// Start from 2nd element to keep a path that starts from "\\".
auto last = std::unique(fileName.begin() + 1, fileName.end(),
[](generic_string::value_type a, generic_string::value_type b)
{
return a == b && a == '\\';
});
if (last != fileName.end())
{
fileName.erase(last, fileName.end());
transformed = true;
}
return transformed;
}