martinfabian / MFXlist

https://forum.cockos.com/showthread.php?t=248411
5 stars 1 forks source link

Bug in quick FX on right.-click menu... #29

Closed martinfabian closed 3 years ago

martinfabian commented 3 years ago

If the right-click menu is opened not over any track area (such as the header or footer) and an FX is selected, MFXlist crashes. Must check for hovered ´tracks not being nil!

martinfabian commented 3 years ago

Easy fix is to embed the code after the assignment to the local variable trackwithin if track then ... end. A better fix would be to not at all show the quick FX part of the menu if track == nil. This requires splitting the menu string into two parts, and putting them together (or not) at the point of showing the menu. Basically calling initMenu(with a parameter) before showing it.

martinfabian commented 3 years ago

Fixed in v0.9.8. The "better fix" described above was applied.