You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to do cut & paste in track sets while track files are missing, you can cut (copy & remove) but you can't paste due to invalid QFileInfos (no location).
This may happen with tracks on currently unmounted drives and will drop tracks irretrievably..
Fix?
Use DragAndDropHelper::supportedTracksFromUrls and check if the number of returned QFileInfos is equal the number of indices. Else block Cut.
This may be costly. We could first check the fs_deleted column and abort if at least one track was deleted.
If no tracks is marked deleted that may be due to an outstanding do the dnd check
Unfortunately we also need a popup:
"Cut is prohibited because one or more track files of the selection is missing"
(opt1: list missing files)
(opt2: "Remove missing tracks from selection and try again" button)
Elaborate, maybe risky alternative:
hybrid copy/paste with QUrls + TrackIds?
is this even possible?
I consider this a blocker since it may wipe user data.
Version
2.5-alpha
OS
No response
The text was updated successfully, but these errors were encountered:
ronso0
changed the title
don't allow Cut in track sets if track files are missing
Cutting Ctrl+X track with missing track files from track sets removes them irretrievably
Apr 16, 2024
Bug
If you want to do cut & paste in track sets while track files are missing, you can cut (copy & remove) but you can't paste due to invalid QFileInfos (no location).
This may happen with tracks on currently unmounted drives and will drop tracks irretrievably..
Fix?
Use
DragAndDropHelper::supportedTracksFromUrls
and check if the number of returned QFileInfos is equal the number of indices. Else block Cut.This may be costly. We could first check the
fs_deleted
column and abort if at least one track was deleted.If no tracks is marked deleted that may be due to an outstanding do the dnd check
Unfortunately we also need a popup:
"Cut is prohibited because one or more track files of the selection is missing"
(opt1: list missing files)
(opt2: "Remove missing tracks from selection and try again" button)
Elaborate, maybe risky alternative:
hybrid copy/paste with QUrls + TrackIds?
is this even possible?
I consider this a blocker since it may wipe user data.
Version
2.5-alpha
OS
No response
The text was updated successfully, but these errors were encountered: