Bug 60134 - When noatun is restarted after the login (I left it open at logout) it adds the track I was listening at the end of the playlist
Summary: When noatun is restarted after the login (I left it open at logout) it adds t...
Status: RESOLVED FIXED
Alias: None
Product: noatun
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Multimedia Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-20 17:51 UTC by Andrea Bergia
Modified: 2003-06-27 00:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Bergia 2003-06-20 17:51:45 UTC
Version:           2.3.2 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.3
OS:          Linux (i686) release 2.4.21

I usually left noatun open when I logout. When I login, noatun is restored, but it adds at the end of the playlist the track I was listening and start playing it, instead of playing the already present track in the playlist. I use the playlist "Division" (I don't know the original name in English, since I use KDE in Italian).
Comment 1 Carsten Pfeiffer 2003-06-27 00:53:58 UTC
Subject: kdemultimedia/noatun/modules/marquis

CVS commit by pfeiffer: 

this was just for testing
CCMAIL: 60134-close@bugs.kde.org


  M +9 -8      marquis.cpp   1.11


--- kdemultimedia/noatun/modules/marquis/marquis.cpp  #1.10:1.11
@@ -152,14 +152,15 @@ void Marquis::readSessionConfig(KConfig 
                 napp->playlist()->showList();
 
-        KURL songURL = c->readPathEntry("Current Song");
+// this is broken (pfeiffer)
+//      KURL songURL = c->readPathEntry("Current Song");
 // kdDebug(66666) << "song: " << songURL.url() << endl;
-        if ( songURL.isValid() )
-        {
+//      if ( songURL.isValid() )
+//      {
 // kdDebug(66666) << "is Valid, setting as current now!" << endl;
-                napp->playlist()->addFile( songURL, true );
-                int position = c->readNumEntry("Current Position", 0);
-                player->skipTo( position );
-                setPlayStatus( player, c->readNumEntry("PlayStatus", 0) );
-        }
+//              napp->playlist()->addFile( songURL, true );
+//              int position = c->readNumEntry("Current Position", 0);
+//              player->skipTo( position );
+//              setPlayStatus( player, c->readNumEntry("PlayStatus", 0) );
+/       }
 
         player->setVolume( c->readNumEntry("Volume", 100) );