switching to player without model tracebacks (but does not block)

Bug #233675 reported by Benjamin Kampmann
2
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
High
Benjamin Kampmann

Bug Description

Traceback (most recent call last):
  File "/home/ben/dev/elisa/trunk/elisa-core/elisa/core/input_manager.py", line 196, in _emit_event
    sig.emit(event)
  File "/home/ben/dev/elisa/trunk/elisa-core/elisa/core/utils/signal.py", line 159, in emit
    receiver(*args, **kw)
  File "/home/ben/dev/elisa/trunk/elisa-core/elisa/core/backend.py", line 117, in dispatch_input
    event_processed = controller.handle_input(input_event)
  File "/home/ben/dev/elisa/trunk/elisa-plugins/elisa/plugins/raval_frontend/grid_controller.py", line 106, in handle_input
    return super(GridController, self).handle_input(input_event)
  File "/home/ben/dev/elisa/trunk/elisa-plugins/elisa/plugins/raval_frontend/list_controller.py", line 141, in handle_input
    self.activate_item(input_event.origin)
  File "/home/ben/dev/elisa/trunk/elisa-plugins/elisa/plugins/raval_frontend/grid_controller.py", line 120, in activate_item
    super(GridController, self).activate_item(origin)
  File "/home/ben/dev/elisa/trunk/elisa-plugins/elisa/plugins/raval_frontend/list_controller.py", line 68, in activate_item
    root.slideshow.focus()
  File "/home/ben/dev/elisa/trunk/elisa-core/elisa/base_components/controller.py", line 96, in focus
    self.backend.focused_controller = self
  File "/home/ben/dev/elisa/trunk/elisa-core/elisa/core/backend.py", line 86, in focused_controller__set
    controller.focused = True
  File "/home/ben/dev/elisa/trunk/elisa-core/elisa/core/observers/observable.py", line 77, in __setattr__
    super(Observable, self).__setattr__(key, new_value)
  File "/home/ben/dev/elisa/trunk/elisa-core/elisa/base_components/controller.py", line 108, in focused__set
    self.focused_changed(old_focused, focused)
  File "/home/ben/dev/elisa/trunk/elisa-plugins/elisa/plugins/raval_frontend/elisa_controller.py", line 246, in focused_changed
    if self.player.current_model.file_type == "video" and \
  File "/home/ben/dev/elisa/trunk/elisa-plugins/elisa/plugins/player/player_controller.py", line 262, in current_model__get
    return self.model[self._current_index]
TypeError: 'NoneType' object is unsubscriptable

Revision history for this message
Benjamin Kampmann (benjamin-fluendo) wrote :

(In [5239]) * elisa-plugins/elisa/plugins/raval_frontend/elisa_controller.py:
        don't try to get the current_model of the player, if the player does not
        have ANY model, fixes #1115

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.