Wrong crate highlighted after after drag and drop

Bug #1414246 reported by naught101
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Medium
orens

Bug Description

To reproduce: Say you have a song in crate 1, and you want to move it to crate 2 (e.g., copy, then delete from crate 1)

1. Drag track from crate 1 to crate 2
2. Library still shows contents of crate 1, but sidebar has crate 2 selected
3. Right-click on track in library (apparently showing crate 1), and click "remove".
4. Track is removed from crate 2. Library view switches to crate 2, which now no longer contains the copied track (e.g, you're back at step 0).

if at step 3. you try to remove a track that is *not* in crate 2, nothing will be removed from anywhere, and the library view will switch to crate 2.

Proper behaviour should be:
2. Library shows crate 1, and side-bar has crate 1 selected. I assume that this will make the remove remove a track.

Ideal additional behaviour: Implement a "move" function, perhaps with shift-drag.

Tags: library
Revision history for this message
orens (richterskala) wrote :

Just discovered this problem as well.

I think the whole problem would be solved, if Mixxx wouldn't select the crate after you move a file in it. This can be annoying, if you're working with the filesystem browser to build up your crates and after every action you have to move the view back to where you were.

Is there a reason the selection jumps to the crate you drop a file in?

Revision history for this message
Daniel Schürmann (daschuer) wrote :

This should be already fixed in 1.12 beta. Right?

Revision history for this message
orens (richterskala) wrote :

Bug still persists in built from current beta branch.

Skimming through the PR from the corresponding bug report suggest that it was only fixed in BasePlaylistFeature, while CreateFeature inherits only from LibraryFeature.

In fact I can not recreate the bug if I use Playlists instead of crates.

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Related Bug: https://bugs.launchpad.net/bugs/1454722

I cannot confirm this in the master branch using Ubuntu. Crates and Playlists works as desired.
Will check 1.12 soon.

Revision history for this message
Daniel Schürmann (daschuer) wrote :

I cannot confirm this using current recent 1.12 r5561 on Ubuntu as well.

* go to library view
* open crates tree
* drop track to crate
* library view remains unchanged
* however, the treview highlight is moved to the crate drop target
* focus remains on the library view and I can drop an other track

The same happen if I drop a track from browse view and from other crates.

What happens during your test case? What Os, version of Mixxx do you use?

Revision history for this message
orens (richterskala) wrote :

Isn't the moved highlight exactly the wrong behaviour?

Here is what I do to confirm wrong behaviour:

* go to library view
* open crates tree
* create empty crate A
* create empty crate B
* drop two tracks into crate A
* select crate A
* select track in crate A and copy it to crate B (either drag & drop or right click menu)
* crate A will have two tracks, crate B will have one. Library view remains on crate A while highlight moves to crate B
* right click selected track and remove
* the track will be removed from crate B!

In this end crate A will still have 2 tracks, while crate B will have 0 - although you'd expect to remove the track from crate A because that's the crate that was listed to you in the library view.

Furthermore: If you do the same steps with playlists instead of crates, mixxx will do the (in my eyes) expected behavior and deletes the track from playlist A

I run Arch Linux and Mixxx r5564

Revision history for this message
orens (richterskala) wrote :

Sorry, Mixxx 1.12 r5564 that is.

Revision history for this message
Daniel Schürmann (daschuer) wrote :

I see, due to the the wrong highlighting you cannot distinguish the two crates since they have the same content.

Changed in mixxx:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 1.12.0
Revision history for this message
Daniel Schürmann (daschuer) wrote :

Do you have fun to fix this issue yourself?
Hints:
http://www.mixxx.org/wiki/doku.php/bugfix_workflow

summary: - Wrong library folder viewed after drag and drop
+ Wrong crate highlighted after after drag and drop
Revision history for this message
orens (richterskala) wrote :

Alright, I'm on it

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Great!:-)

Revision history for this message
orens (richterskala) wrote :
Revision history for this message
-MK- (mk42) wrote :

Was merged, so should be fix comitted?

Revision history for this message
Owen Williams (ywwg) wrote :

right, thanks

Changed in mixxx:
status: Confirmed → Fix Committed
assignee: nobody → Owen Williams (ywwg)
assignee: Owen Williams (ywwg) → orens (richterskala)
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7825

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.