summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-08-20 11:58:03 (UTC)
committer llornkcor <llornkcor>2002-08-20 11:58:03 (UTC)
commitdfd3bcb3dd20cc72487c527d135e076a0ff78b25 (patch) (unidiff)
tree0e26510735ca9c2b65e39e03ab56c77372de8d6a
parentb00ba7b9cdf02a4512f70694e2262ce6e3ebcb98 (diff)
downloadopie-dfd3bcb3dd20cc72487c527d135e076a0ff78b25.zip
opie-dfd3bcb3dd20cc72487c527d135e076a0ff78b25.tar.gz
opie-dfd3bcb3dd20cc72487c527d135e076a0ff78b25.tar.bz2
move configwrite to a better place not in deconstructor
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayer.cpp2
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp3
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp
index 6a48b82..0526c2a 100644
--- a/noncore/multimedia/opieplayer2/mediaplayer.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp
@@ -293,6 +293,8 @@ void MediaPlayer::keyReleaseEvent( QKeyEvent *e) {
293} 293}
294 294
295void MediaPlayer::cleanUp() {// this happens on closing 295void MediaPlayer::cleanUp() {// this happens on closing
296 Config cfg( "OpiePlayer" );
297 playList->writeConfig( cfg );
296 298
297// QPEApplication::grabKeyboard(); 299// QPEApplication::grabKeyboard();
298// QPEApplication::ungrabKeyboard(); 300// QPEApplication::ungrabKeyboard();
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 404e1fe..bc9b166 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -307,9 +307,6 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
307 307
308 308
309PlayListWidget::~PlayListWidget() { 309PlayListWidget::~PlayListWidget() {
310 Config cfg( "OpiePlayer" );
311 writeConfig( cfg );
312
313 if ( d->current ) { 310 if ( d->current ) {
314 delete d->current; 311 delete d->current;
315 } 312 }
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h
index 8076707..8710a99 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.h
+++ b/noncore/multimedia/opieplayer2/playlistwidget.h
@@ -48,6 +48,7 @@ public slots:
48 bool last(); 48 bool last();
49 bool next(); 49 bool next();
50 bool prev(); 50 bool prev();
51 void writeConfig( Config& cfg ) const;
51/* void setFullScreen(); */ 52/* void setFullScreen(); */
52/* void setScaled(); */ 53/* void setScaled(); */
53protected: 54protected:
@@ -64,7 +65,6 @@ private:
64 65
65 void initializeStates(); 66 void initializeStates();
66 void readConfig( Config& cfg ); 67 void readConfig( Config& cfg );
67 void writeConfig( Config& cfg ) const;
68 PlayListWidgetPrivate *d; // Private implementation data 68 PlayListWidgetPrivate *d; // Private implementation data
69 void populateAudioView(); 69 void populateAudioView();
70 void populateVideoView(); 70 void populateVideoView();