Skip to content
  • Matěj Laitl's avatar
    SqlTrack: update uidUrl in db if it changes on metadata change · b108bd65
    Matěj Laitl authored
    Following scenario lead to statistics, lyrics and labels loss:
     1. make sure a track in local collection is not tagged by
        amarok_afttagger or with musicbrainz uid
     2. turn off "Watch folders for changes" (or work fast)
     3. change title of the track within Amarok
     4. move the file within collection folders using Dolphin
     5. hit "Update Collection"
     6. the stats are lost; normally Amarok should match the track by
        uidUrl, but it isn't updated in the db in step 3., so it doesn't
        find the old track and removes the entry for it.
    
    [Reporters: ^^^ see a nice example of "steps to reproduce"]
    
    This patch changes step 3 to reread and update uidUrl in the database
    if necessary.
    
    BUGFIXES:
     * Don't loose statictis, labels and lyrics when changing metadata of a
       track (not tagged by afttagger) followed by moving it.
    
    BUG: 292245
    CCMAIL: Ralf Engels <ralf-engels@gmx.de>
    FIXED-IN: 2.6
    b108bd65
To find the state of this project's repository at the time of any of these versions, check out the tags.