From 57ba7640ab889f30c7d28d74777a28cc82491456 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Fri, 22 Oct 2010 21:30:38 +0000 Subject: [PATCH] Move an old comment past later additions, to the code it actually refers to. Ask a question about the mSelectAllOnNone addition. --- src/Menus.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index 9dfda2a2e..2b9059201 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -1558,12 +1558,11 @@ void AudacityProject::UpdateMenus() if (!IsActive()) return; - // Return from this function if nothing's changed since - // the last time we were here. wxUint32 flags = GetUpdateFlags(); wxUint32 flags2 = flags; - // We can enable some extra items if we have select-all-on-none + // We can enable some extra items if we have select-all-on-none. + //EXPLAIN-ME: Why is this here rather than in GetUpdateFlags()? if (mSelectAllOnNone) { if ((flags & TracksExistFlag) != 0) @@ -1578,6 +1577,8 @@ void AudacityProject::UpdateMenus() } } + // Return from this function if nothing's changed since + // the last time we were here. if (flags == mLastFlags) return; mLastFlags = flags;