From: Diane Trout Date: Fri, 15 Sep 2006 22:27:20 +0000 (+0000) Subject: use the loaded analysis path as the default save path X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=59e692a7b7c0300d302ff34ad9ab78194293962c use the loaded analysis path as the default save path if no save location is specified for an analysis and we happen to have an analysis location that we were loaded from, default to saving to the same location. --- diff --git a/alg/mussa.cpp b/alg/mussa.cpp index ccba221..7226e43 100644 --- a/alg/mussa.cpp +++ b/alg/mussa.cpp @@ -530,7 +530,9 @@ Mussa::save(fs::path save_path) int dir_create_status; if (save_path.empty()) { - if (not analysis_name.empty()) { + if (not analysis_path.empty()) { + save_path = analysis_path; + } else if (not analysis_name.empty()) { std::string save_name = analysis_name; // gotta do bit with adding win & thres if to be appended if (win_append) {