author | zecke <zecke> | 2004-09-24 15:12:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-24 15:12:16 (UTC) |
commit | a214128c01e38ffd50edc4ed5b5c72593796eab2 (patch) (unidiff) | |
tree | 7830f6c4052bc091eec065955427006fec3c4d50 | |
parent | 5ec51a8bb49a0a668bb2d7ab652a1a1e776a0e42 (diff) | |
download | opie-a214128c01e38ffd50edc4ed5b5c72593796eab2.zip opie-a214128c01e38ffd50edc4ed5b5c72593796eab2.tar.gz opie-a214128c01e38ffd50edc4ed5b5c72593796eab2.tar.bz2 |
-Save the State on deletion of the MediaPlayerState
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 44bc46b..31773f2 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp | |||
@@ -50,8 +50,10 @@ MediaPlayerState::MediaPlayerState( QObject *parent, const char *name ) | |||
50 | } | 50 | } |
51 | 51 | ||
52 | 52 | ||
53 | MediaPlayerState::~MediaPlayerState() { | 53 | MediaPlayerState::~MediaPlayerState() { |
54 | Config cfg( "OpiePlayer" ); | ||
55 | writeConfig( cfg ); | ||
54 | } | 56 | } |
55 | 57 | ||
56 | 58 | ||
57 | void MediaPlayerState::readConfig( Config& cfg ) { | 59 | void MediaPlayerState::readConfig( Config& cfg ) { |
@@ -256,4 +258,7 @@ void MediaPlayerState::toggleBlank() { | |||
256 | } | 258 | } |
257 | 259 | ||
258 | 260 | ||
259 | 261 | ||
262 | |||
263 | |||
264 | |||