Summary: | pressing play in a "Random Mix" crashes Amarok | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | salijos |
Component: | Playlists/Saved Playlists | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | thomas.lindroth |
Priority: | NOR | ||
Version: | 1.4.5 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
salijos
2007-05-07 21:13:01 UTC
*** This bug has been marked as a duplicate of 144121 *** I don't think this is the same bug. I can duplicate this, but not bug 144121. Reopening. This only happens if it was also the currently playing track. For instance, if you are playing the top track, and then sort the playlist by some value so that it is no longer the top track, and then try to play the top track, there's no crash. SVN commit 662353 by mitchell: Fix... BUG: 145157 M +9 -4 playlist.cpp --- branches/stable/extragear/multimedia/amarok/src/playlist.cpp #662352:662353 @@ -1604,14 +1604,17 @@ if ( !checkFileStatus( item ) ) { - Amarok::StatusBar::instance()->shortMessage( i18n("Local file does not exist.") ); - return; + Amarok::StatusBar::instance()->shortMessage( i18n("Local file does not exist.") ); + return; } if( dynamicMode() && !m_dynamicDirt && !Amarok::repeatTrack() ) { if( m_currentTrack && item->isDynamicEnabled() ) - this->moveItem( item, 0, m_currentTrack ); + { + if( item != m_currentTrack ) + this->moveItem( item, 0, m_currentTrack ); + } else { MyIt it( this, MyIt::Visible ); @@ -1639,8 +1642,10 @@ } if( m_currentTrack && m_currentTrack != item ) + { m_currentTrack->setDynamicEnabled( false ); - advanceDynamicTrack(); + advanceDynamicTrack(); + } } if( Amarok::entireAlbums() ) *** Bug 144121 has been marked as a duplicate of this bug. *** The patch given works fine. Thanks! |