summaryrefslogtreecommitdiff
authorzecke <zecke>2005-05-12 21:21:14 (UTC)
committer zecke <zecke>2005-05-12 21:21:14 (UTC)
commited2d14794cee66441f06be923623694f4ad2e06b (patch) (unidiff)
tree92a30a25343f9aa97285ed4f8d95209923ab1c0d
parent9d1113376da0ba95a5b4121bd953756311ac5a97 (diff)
downloadopie-ed2d14794cee66441f06be923623694f4ad2e06b.zip
opie-ed2d14794cee66441f06be923623694f4ad2e06b.tar.gz
opie-ed2d14794cee66441f06be923623694f4ad2e06b.tar.bz2
Fix for #1657 to show the play button when we've playable files
patch courtsey Gints Polis
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 83eb83b..98326a8 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -765,8 +765,14 @@ void PlayListWidget::openDirectory() {
765 else { 765 else {
766 addFileToPlaylist( filename, QFileInfo(*it).baseName() ); 766 addFileToPlaylist( filename, QFileInfo(*it).baseName() );
767 } 767 }
768 } 768 }
769
770 if (!d->selectedFiles->isEmpty()) {
771 d->selectedFiles->first();
772
773 setButtons();
774 }
769} 775}
770 776
771void PlayListWidget::readListFromFile( const QString &filename ) { 777void PlayListWidget::readListFromFile( const QString &filename ) {
772 odebug << "read list filename " + filename << oendl; 778 odebug << "read list filename " + filename << oendl;