Bug 72361

Summary: Noatun should remember play status in between sessions
Product: noatun Reporter: Jose Hernandez <code>
Component: generalAssignee: Charles Samuels <charles>
Status: RESOLVED FIXED    
Severity: normal CC: kynes
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: fixes the described bug/wish

Description Jose Hernandez 2004-01-11 06:54:56 UTC
Version:           2.3.3 (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
OS:          Linux (i686) release 2.6.0-gentoo

Noatun begins playing after relogging into a KDE session regardless of whether it was stopped/paused/playing.

I noticed bug <a href=http://bugs.kde.org/show_bug.cgi?id=53001>53001 that was marked RESOLVED, which was reported almost a year ago (4 days off), but it seems to still exist as of CVS today.
Comment 1 Stefan Gehn 2004-03-07 19:02:11 UTC
*** Bug 53001 has been marked as a duplicate of this bug. ***
Comment 2 jon belson 2004-07-10 11:47:58 UTC
I've been experiencing this behaviour for as long as I can remember. The song it plays always seems to be the last one in the playlist (then it stops).
Comment 3 Felix Berger 2004-09-24 22:39:52 UTC
Created attachment 7666 [details]
fixes the described bug/wish

The attached patch adds a buttongroup to the general prefs widget where you can
choose from three options:

Restore playing state
Play file on startup
Don't play file on startup

The functionality is implemented too.

Felix Berger
Comment 4 Felix Berger 2004-09-25 00:34:26 UTC
int NoatunApp::startupPlayMode() const
{
  KConfig* config = KGlobal::config();
  config->setGroup("");
  return config->readNumEntry("StartupPlayMode", autoPlay() ? Play : Restore);
}

This incorporates the old option when upgrading noatun.
Comment 5 Charles Samuels 2004-10-03 19:45:52 UTC
CVS commit by charles: 


Patch by Felix Berger <bflat1@gmx.net>

The attached patch adds a buttongroup to the general prefs widget where you can 
choose from three options: 
  
 Restore playing state 
 Play file on startup 
 Don't play file on startup 
      
Thanks Felix!

CCMAIL:72361-done@bugs.kde.org


  M +56 -1     app.cpp   1.32
  M +26 -7     cmodule.cpp   1.71
  M +3 -1      cmodule.h   1.31
  M +23 -1     noatun/app.h   1.27