author | alwin <alwin> | 2005-04-14 09:23:25 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-04-14 09:23:25 (UTC) |
commit | c643e152dc7d2167381d3fc0568ad4043de5604e (patch) (unidiff) | |
tree | 3050f49d659a1d6eb54cca2a08ed64cf0d04842a /noncore/multimedia/opieplayer3/playlist.cpp | |
parent | cb10570b4118161a066b741c2674d8d522670623 (diff) | |
download | opie-c643e152dc7d2167381d3fc0568ad4043de5604e.zip opie-c643e152dc7d2167381d3fc0568ad4043de5604e.tar.gz opie-c643e152dc7d2167381d3fc0568ad4043de5604e.tar.bz2 |
gui polish
Diffstat (limited to 'noncore/multimedia/opieplayer3/playlist.cpp') (more/less context) (ignore whitespace changes)
-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 2eb40e3..6f2e668 100644 --- a/noncore/multimedia/opieplayer3/playlist.cpp +++ b/noncore/multimedia/opieplayer3/playlist.cpp | |||
@@ -164,6 +164,8 @@ void PlaylistView::addFile(const QString&aFile,const QString&aName) | |||
164 | return; | 164 | return; |
165 | } | 165 | } |
166 | m_lastItem = m_items.last(); | 166 | m_lastItem = m_items.last(); |
167 | PlaylistItem*_it = currentItem(); | ||
168 | |||
167 | if (m_lastItem) { | 169 | if (m_lastItem) { |
168 | m_lastItem = new PlaylistItem(aFile,this,m_lastItem); | 170 | m_lastItem = new PlaylistItem(aFile,this,m_lastItem); |
169 | } else { | 171 | } else { |
@@ -199,7 +201,9 @@ void PlaylistView::addFile(const QString&aFile,const QString&aName) | |||
199 | m_lastItem->setText(COL_TIME,codec); | 201 | m_lastItem->setText(COL_TIME,codec); |
200 | m_lastItem->Video(m_Infolib->hasVideo()); | 202 | m_lastItem->Video(m_Infolib->hasVideo()); |
201 | m_items.append(m_lastItem); | 203 | m_items.append(m_lastItem); |
202 | setSelected(m_lastItem,true); | 204 | if (_it==NULL) { |
205 | setSelected(m_lastItem,true); | ||
206 | } | ||
203 | } | 207 | } |
204 | 208 | ||
205 | void PlaylistView::slotAppendDir() | 209 | void PlaylistView::slotAppendDir() |