Re: [Audacity-devel] Open in empty project
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Dominic M. <do...@mi...> - 2002-06-24 07:04:01
|
I think that the correct fix might be to see if any other project windows are open (by getting the count stored in the static variable in Project.cpp) and if so, calling event.Skip(), in all of the AudacityApp handlers. Shane, when you have a chance, could you try this instead of the #ifdef mac? That way it would behave correctly on the Mac, and not get in the way on other platforms. - Dominic Shane Mueller wrote: > There was a 'bug' whereby if you had an empty project window and chose > "File|Open", it would open a new project window. Its cause was this: > In AudacityApp, there are 5 menu functions defined to be used on the > Mac. They are intended to operate only on the Mac (that's what > Dominic's comments say) and work when there are no project windows open, > but the menu bar is still active. But, these were apparently overriding > the actual menu items, even on other platforms. > > I fixed the problem by '#ifdef'ing these function definitions so they > only get compiled on the Mac, and tweaking the open function in > Project.cpp. A few concerns: > > * This is probably incorrect for the Mac, because I assume that the mac > will still be using the menu functions defined in AudacityApp instead of > the ones defined in Menu, even when it shouldn't be. |