From: Diane Trout Date: Fri, 15 Sep 2006 22:50:27 +0000 (+0000) Subject: if you need to do a save as, you really don't need to save too X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=2b4402d0a962b67a680d56bed4f01cfc06f622f5 if you need to do a save as, you really don't need to save too when you comment out an else if, perhaps you should leave in the else part. --- diff --git a/qui/MussaWindow.cpp b/qui/MussaWindow.cpp index f3166d7..f22fe1d 100644 --- a/qui/MussaWindow.cpp +++ b/qui/MussaWindow.cpp @@ -334,12 +334,13 @@ void MussaWindow::saveAnalysis() // if it doesn't have a name we need to pick one if (analysis->get_analysis_path().empty()) { saveAnalysisAs(); - } - // if we've got a name, has it changed any? - // this doesn't work when a sequence changes something (like its - // name) - //else if (analysis->is_dirty()) - analysis->save(); + } else { + // if we've got a name, has it changed any? + // this doesn't work when a sequence changes something (like its + // name) + //else if (analysis->is_dirty()) + analysis->save(); + } } }