Fixed double backslash case
If the first two symbols in the path are backslashes, we should not treat them like a single backslash, as one refers to root and the other to a network path.
This commit is contained in:
@@ -743,8 +743,15 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam
|
||||
da.push_back (tok);
|
||||
}
|
||||
|
||||
if (origFileName[0] == '/' || origFileName[0] == '\\') {
|
||||
if (origFileName[0] == '/') {
|
||||
pa.push_back ("/" + da[0]);
|
||||
} else if (origFileName[0] == '\\') {
|
||||
if (origFileName[1] == '\\') {
|
||||
pa.push_back ("\\\\" + da[0]);
|
||||
}
|
||||
else {
|
||||
pa.push_back ("/" + da[0]);
|
||||
}
|
||||
} else {
|
||||
pa.push_back (da[0]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user