summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2
authorzecke <zecke>2004-09-24 15:12:16 (UTC)
committer zecke <zecke>2004-09-24 15:12:16 (UTC)
commita214128c01e38ffd50edc4ed5b5c72593796eab2 (patch) (side-by-side diff)
tree7830f6c4052bc091eec065955427006fec3c4d50 /noncore/multimedia/opieplayer2
parent5ec51a8bb49a0a668bb2d7ab652a1a1e776a0e42 (diff)
downloadopie-a214128c01e38ffd50edc4ed5b5c72593796eab2.zip
opie-a214128c01e38ffd50edc4ed5b5c72593796eab2.tar.gz
opie-a214128c01e38ffd50edc4ed5b5c72593796eab2.tar.bz2
-Save the State on deletion of the MediaPlayerState
Diffstat (limited to 'noncore/multimedia/opieplayer2') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.cpp5
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
@@ -48,12 +48,14 @@ MediaPlayerState::MediaPlayerState( QObject *parent, const char *name )
streaming = false;
seekable = true;
}
MediaPlayerState::~MediaPlayerState() {
+ Config cfg( "OpiePlayer" );
+ writeConfig( cfg );
}
void MediaPlayerState::readConfig( Config& cfg ) {
cfg.setGroup("Options");
fullscreen = cfg.readBoolEntry( "FullScreen" );
@@ -254,6 +256,9 @@ void MediaPlayerState::togglePlaying() {
void MediaPlayerState::toggleBlank() {
setBlanked( !blanked);
}
+
+
+