mirror of https://github.com/buggins/dlangide.git
fix corruption of workspace name - #267
This commit is contained in:
parent
f2f1f3b85e
commit
aab488ecae
|
@ -270,9 +270,9 @@ class Workspace : WorkspaceItem {
|
||||||
if (df)
|
if (df)
|
||||||
_description ~= p.description ~ " / ";
|
_description ~= p.description ~ " / ";
|
||||||
}
|
}
|
||||||
if (!_name.empty) // cut off last comma
|
if (nf && !_name.empty) // cut off last comma
|
||||||
_name = _name[ 0 .. $ - 1 ];
|
_name = _name[ 0 .. $ - 1 ];
|
||||||
if (!_description.empty) // cut off last delimiter
|
if (df && !_description.empty) // cut off last delimiter
|
||||||
_description = _description[ 0 .. $ - 3 ];
|
_description = _description[ 0 .. $ - 3 ];
|
||||||
}
|
}
|
||||||
_workspaceFile.setString("name", toUTF8(_name));
|
_workspaceFile.setString("name", toUTF8(_name));
|
||||||
|
|
Loading…
Reference in New Issue