Merge pull request #4046 from johenning/dev
Check for double backslash to enable output to network paths
This commit is contained in:
@@ -743,8 +743,14 @@ 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.size() > 1 && 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