Diffstat (limited to 'noncore/multimedia/opieplayer2') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 27db464..2521906 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -630,5 +630,5 @@ void PlayListWidget::addSelected() { cfg.setGroup("PlayList"); QString currentPlaylist = cfg.readEntry("CurrentPlaylist",""); - int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); +// int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); switch (tabWidget->currentPageIndex()) { @@ -677,4 +677,5 @@ void PlayListWidget::removeSelected() { void PlayListWidget::playIt( QListViewItem *it) { + if(it==NULL) return; qDebug("playIt"); mediaPlayerState->setPlaying(FALSE); @@ -713,5 +714,5 @@ void PlayListWidget::addToSelection( QListViewItem *it) { } -void PlayListWidget::tabChanged(QWidget *widg) { +void PlayListWidget::tabChanged(QWidget *) { switch ( tabWidget->currentPageIndex()) { @@ -803,5 +804,5 @@ void PlayListWidget::deletePlaylist() { } -void PlayListWidget::viewPressed( int mouse, QListViewItem *item, const QPoint& point, int i) { +void PlayListWidget::viewPressed( int mouse, QListViewItem *, const QPoint& , int) { switch (mouse) { case 1: @@ -823,5 +824,5 @@ void PlayListWidget::playSelected() { } -void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *item, const QPoint& point, int i) { +void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoint& , int ) { switch (mouse) { case 1: @@ -844,5 +845,5 @@ void PlayListWidget::listDelete() { QString currentPlaylist = cfg.readEntry("CurrentPlaylist",""); QString file; - int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); +// int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); switch ( tabWidget->currentPageIndex()) { case 0: @@ -1041,5 +1042,5 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e) } -void PlayListWidget::keyPressEvent( QKeyEvent *e) +void PlayListWidget::keyPressEvent( QKeyEvent *) { // qDebug("Key press"); |