[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok-bugs-dist
Subject:    [Bug 198417] New: Script: Amarok.Engine.currenttrack is set when no
From:       Remco vd Zon <theunknowncylon () live ! nl>
Date:       2009-06-30 13:34:26
Message-ID: bug-198417-71684 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=198417

           Summary: Script: Amarok.Engine.currenttrack is set when no
                    track is playing
           Product: amarok
           Version: 2.1.1
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: amarok-bugs-dist@kde.org
        ReportedBy: theunknowncylon@live.nl


Version:           2.1.1 (using 4.2.4 (KDE 4.2.4) "release 2", KDE:42 /
openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.23-0.1-default

When a track stopped playing, Amarok fires two actions:

Amarok.Engine.trackChanged.connect( );
Amarok.Engine.trackFinished.connect( );

is executed when the player stopped a track.

When the player ended the current song (stop button/...), it calls
Amarok.Engine.trackChanged.connect( ); There is no way to determine if the song
was stopped or a new song was just started.

When a new song starts Amarok.Engine.currentTrack(); will return the new song
data, but when the player stops, the same function returns the OLD song data.
This is inconsistent.


Fixing should not be a big problem:
*  Amarok.Engine.currentTrack(); returns false when the player is stopped

-- or --

* Do not fire Amarok.Engine.trackChanged.connect( ) when the player stops a
song.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Amarok-bugs-dist mailing list
Amarok-bugs-dist@kde.org
https://mail.kde.org/mailman/listinfo/amarok-bugs-dist
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic