~guillaume86/exaile/context-dev

« back to all changes in this revision

Viewing changes to plugins/minimode/mmwidgets.py

  • Committer: guillaume86
  • Date: 2009-08-03 11:51:39 UTC
  • mfrom: (2141.1.148 trunk)
  • Revision ID: guillaume86-20090803115139-ipxtvutozyrsp2o3
Update the home/current song button image/tooltip according to the situation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
        """
320
320
            Updates the currently selected track
321
321
        """
322
 
        pos = self.playlist.playlist.index(track)
 
322
        try:
 
323
            pos = self.playlist.playlist.index(track)
 
324
        except ValueError:
 
325
            return
323
326
        self.playlist.playlist.set_current_pos(pos)
324
327
 
325
328
    def on_playback_start(self, event, player, track):