diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index 12cd6347ba633b474ecfaede78316c4a57f82bd0..69f979eeb5d14f3680f9c1ddb21bc46b507265b9 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -5684,6 +5684,9 @@ function file_dialog(cid, type, target, start_path) { // it just doesn't work. So this requires us to have the parent <span> // around the <input>. Then when we change the innerHTML of the span the // new value for nwworkingdir magically works. + if(nw_os_is_windows) { + start_path = start_path.replace(/\//g, '\\'); + } dialog_options = { style: "display: none;", type: "file",