From 2b4402d0a962b67a680d56bed4f01cfc06f622f5 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 15 Sep 2006 22:50:27 +0000 Subject: [PATCH] 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. --- qui/MussaWindow.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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(); + } } } -- 2.30.2