-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 7 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidgetgui.cpp | 1 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidgetgui.h | 1 |
3 files changed, 1 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 55b66ab..6355bec 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -170,7 +170,4 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) PlayListWidget::~PlayListWidget() { - if ( d->current ) { - delete d->current; - } delete d; } @@ -429,8 +426,6 @@ const DocLnk *PlayListWidget::current() const { // this is fugly // qDebug("playlist"); - if ( mediaPlayerState->isUsingPlaylist() ) { + if ( mediaPlayerState->isUsingPlaylist() ) return d->selectedFiles->current(); - } else if ( d->setDocumentUsed && d->current ) - return d->current; assert( false ); diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp index a217c94..db7c979 100644 --- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp @@ -67,5 +67,4 @@ PlayListWidgetGui::PlayListWidgetGui( QWidget* parent, const char* name, WFlags d = new PlayListWidgetPrivate; d->setDocumentUsed = FALSE; - d->current = NULL; setBackgroundMode( PaletteButton ); diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.h b/noncore/multimedia/opieplayer2/playlistwidgetgui.h index 6c35771..4eefb93 100644 --- a/noncore/multimedia/opieplayer2/playlistwidgetgui.h +++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.h @@ -65,5 +65,4 @@ public: PlayListSelection *selectedFiles; bool setDocumentUsed; - DocLnk *current; }; |