Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Bug: File operations process all files if the focus is moved out of the list (Read 2247 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Bug: File operations process all files if the focus is moved out of the list

If a keyboard shortcut is associated with a file operation, and the key is pressed while the focus was moved out of the track list, the operation assumes that all files in the list should be processed.

This is especially dangerous with delete operation: using single-file deletion frequently, someone may not notice that the focus was accidentally moved, and the number of files does not correspond to the actual selection.

The bug is observed in 1.6.16 and 2.1.5. Now wanted to try 2.24.1, but my antivirus reports a trojan in foobar2000.exe. Most likely, this is a false positive, but I decided to refrain from doing so.

Read the changelog, found no mentions of this bug. Sorry if it has already been reported/fixed.

Re: Bug: File operations process all files if the focus is moved out of the list

Reply #1
What is showing in the Type column for those keyboard shortcuts in Preferences?

Note that there are three different context types: [context], [context / now playing], [context / playlist]

If you have created shortcuts under [context], they will act on whatever part of the UI has focus (with maybe some other logic added on top). It sounds like you want [context / playlist].
.

Re: Bug: File operations process all files if the focus is moved out of the list

Reply #2
Thank you for the suggestion. I have assigned the key to [context], being unsure if others are a better fit. Changed to [context/playlist], and now file operations affect only the selected file.

But is it normal that with [context], file operations always process all files in the playlist, regardless of the selection?