1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-29 06:59:27 +02:00

Move an old comment past later additions, to the code it actually refers to.

Ask a question about the mSelectAllOnNone addition.
This commit is contained in:
v.audacity 2010-10-22 21:30:38 +00:00
parent 29523e7aee
commit 57ba7640ab

View File

@ -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;