author | alwin <alwin> | 2005-04-14 23:15:05 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-04-14 23:15:05 (UTC) |
commit | 4bf8d42034beee5e28b25182e21cf74f3c2da6a8 (patch) (unidiff) | |
tree | 8b882f872f9ddea939722242c229eea46545274b | |
parent | 5fd266a3a5a6d9a1acb9c38e4802ff06ba38beaf (diff) | |
download | opie-4bf8d42034beee5e28b25182e21cf74f3c2da6a8.zip opie-4bf8d42034beee5e28b25182e21cf74f3c2da6a8.tar.gz opie-4bf8d42034beee5e28b25182e21cf74f3c2da6a8.tar.bz2 |
small fix
-rw-r--r-- | noncore/multimedia/opieplayer3/playlist.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer3/playlist.cpp b/noncore/multimedia/opieplayer3/playlist.cpp index 6f2e668..fe2dde3 100644 --- a/noncore/multimedia/opieplayer3/playlist.cpp +++ b/noncore/multimedia/opieplayer3/playlist.cpp | |||
@@ -164,5 +164,9 @@ void PlaylistView::addFile(const QString&aFile,const QString&aName) | |||
164 | return; | 164 | return; |
165 | } | 165 | } |
166 | m_lastItem = m_items.last(); | 166 | if (m_items.count()>0) { |
167 | m_lastItem = m_items.last(); | ||
168 | } else { | ||
169 | m_lastItem = 0; | ||
170 | } | ||
167 | PlaylistItem*_it = currentItem(); | 171 | PlaylistItem*_it = currentItem(); |
168 | 172 | ||