--- wtracktableview.cpp 2008-07-29 14:26:06.000000000 +0000 +++ wtracktableview.patched.cpp 2008-07-29 15:13:26.000000000 +0000 @@ -833,8 +833,12 @@ //m_pTrack->getPlaylists()->removeAll(m_pTrack->getPlaylistByIndex(index.row())); } - updatePlaylistActions(); //Update the right-click menu's list of playlists. - repaintEverything(); //For good luck + // activate the playlist view. + m_pTrack->slotActivatePlaylist( TABLE_MODE_PLAYLISTS ); + // repaint the playlist view + m_pTrack->updatePlaylistViews(); + //Update the right-click menu's list of playlists. + updatePlaylistActions(); } else if (m_iTableMode == TABLE_MODE_BROWSE) { @@ -846,10 +850,10 @@ //prevents the model indices from changing as we remove rows. for (int i = m_selectedIndices.count() - 1; i >= 0 ; i--) { - QModelIndex index = m_selectedIndices.at(i); - QModelIndex filteredIndex = m_pSearchFilter->mapToSource(index); - m_pTable->removeRow(filteredIndex.row()); - //qDebug() << "Removed row" << index.row() - i; + QModelIndex index = m_selectedIndices.at(i); + QModelIndex filteredIndex = m_pSearchFilter->mapToSource(index); + m_pTable->removeRow(filteredIndex.row()); + //qDebug() << "Removed row" << index.row() - i; } } }