Bugzilla – Bug 1623
Using Ctrl+V to Paste one type of track into another causes the Play button to display incorrectly
Last modified: 2018-08-20 11:51:39 UTC
Using Ctrl+V to Paste one type of track into another causes the Play button to display incorrectly as the Ctrl-modified Play Cut Preview button (see Steps To Reproduce). Same behavior in all the 2.0.x seies so not a regression and marked as such. Behavior does not obtain in 1.2.6 as we had no Ctrl-modified Play button back then.
Additionally occurs when using CMD+Space on Mac, where this command invokes Spotlight search.
It does also happen when you drag a selection at step 5, which is more obviously wrong and the only reason that would make me think of P3 here. * The first line of a Release Note should start with "GROUP:" but the Group name after that should not end with a colon. * The next line of a Release Note should start with a "*" so that it will be properly indented on the Wiki Release Notes.
See old bug 307 and the funny workarounds implemented with it, including a wxTimer. I now think the right way to handle that and this and remove the code complications is to use wxEventFilter instead. But, considering the stuff Leland did in CommandManager.cpp for event filtering in wx3, there may be surprises with this approach on macOS. So I will not attempt to fix this until 2.2.1. I have updated the Release Note, according to my understanding of this now. This might happen in more situations than Ctrl+V.
On second thought... I think it is very safe. Only need to listen for events, never intercept them So here it is: https://github.com/audacity/audacity/commit/d9c3a02542c0457188bc7b8aa6d8baa0e3dc9c45
(In reply to Paul L from comment #4) Tested on W10 audacity-win-rf1aa916-2.2.0-alpha-23-jul-17 and on macOS 10.12.5 with Cliff's nightly build of 22Jul17 Works ok with proper play button resored at Step 9 on both platforms. At step 6 the Play button changes to the Ctrl/Cmd modified Play button. It remains so in steps 7 & 8 untile you use the OK in step 8 to dismiss the message (but I think this behavior is ok with the proper play button returning at Step 9
(In reply to Peter Sampson from comment #5) Right, the correct image comes back at step 9, and I don't know how to do it sooner. Good enough?
(In reply to Paul L from comment #6) Good enough for me - but we need a Linux test before I can close this off