void StopMenu::slotAboutToShow() { Playlist *pl = Playlist::instance(); setItemEnabled( NOW, Amarok::actionCollection()->action( "stop" )->isEnabled() ); setItemEnabled( AFTER_TRACK, EngineController::engine()->loaded() ); setItemChecked( AFTER_TRACK, pl->stopAfterMode() == Playlist::StopAfterCurrent ); setItemEnabled( AFTER_QUEUE, pl->nextTracks().count() ); setItemChecked( AFTER_QUEUE, pl->stopAfterMode() == Playlist::StopAfterQueue ); }
void StopMenu::slotAboutToShow() { Playlist *pl = Playlist::instance(); setItemEnabled( NOW, amaroK::actionCollection()->action( "stop" )->isEnabled() ); setItemEnabled( AFTER_TRACK, pl->currentTrackIndex() >= 0 ); setItemChecked( AFTER_TRACK, pl->stopAfterMode() == Playlist::StopAfterCurrent ); setItemEnabled( AFTER_QUEUE, pl->nextTracks().count() ); setItemChecked( AFTER_QUEUE, pl->stopAfterMode() == Playlist::StopAfterQueue ); }