[Bugs] #733 HIGH: blank screen in journal after unmounting an usb stick

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Wed Apr 15 12:23:28 EDT 2009


#733: blank screen in journal after unmounting an usb stick
----------------------------+-----------------------------------------------
    Reporter:  tomeu        |          Owner:  tomeu            
        Type:  defect       |         Status:  new              
    Priority:  High         |      Milestone:  0.84             
   Component:  journal      |        Version:  Git as of bugdate
    Severity:  Major        |     Resolution:                   
    Keywords:  r?           |   Distribution:  Ubuntu           
Status_field:  Unconfirmed  |  
----------------------------+-----------------------------------------------
Changes (by tomeu):

 * cc: erikos (added)
  * keywords:  => r?


Comment:

 fix:

 {{{
 diff --git a/src/jarabe/journal/listview.py
 b/src/jarabe/journal/listview.py
 index 9358036..4578853 100644
 --- a/src/jarabe/journal/listview.py
 +++ b/src/jarabe/journal/listview.py
 @@ -335,8 +335,9 @@ class BaseListView(gtk.HBox):
          self._vadjustment.props.page_increment = self._page_size
          self._vadjustment.changed()

 -        if self._result_set is None:
 -            self._result_set = model.find(self._query, self._page_size)
 +        if self._result_set is not None:
 +            self._result_set.stop()
 +        self._result_set = model.find(self._query, self._page_size)

          max_value = max(0, self._result_set.length - self._page_size)
          if self._vadjustment.props.value > max_value:

 }}}

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/733#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list