diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index aaedfc4c37756c30f95009f170d4809cf9c7d63a..c394afb9dd2a07776856f1824635a7a54c929493 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -741,6 +741,8 @@ function saveas_callback(cid, file, close_flag) { } pdsend(cid, "savetofile", enquote(basename), enquote(directory), close_flag); + // XXXREVIEW: It seems sensible that we also switch the opendir here. -ag + set_pd_opendir(directory); // update the recent files list var norm_path = path.normalize(directory); pdsend("pd add-recent-file", enquote(path.join(norm_path, basename)));