Comment 6 for bug 834196

Revision history for this message
Per-Inge (per-inge-hallin) wrote : Re: [Bug 834196] Re: software-center-gtk3 crashed with AttributeError in copy(): 'NoneType' object has no attribute 'copy'

I added the lines after line 145, but then Software Center didn't start.

Where exactly shall I enter the code?

def copy(self):
         state = DisplayState()
         state.channel = self.channel
         state.category = self.category
         state.subcategory = self.subcategory
         state.search_term = self.search_term
         state.application = self.application
         state.limit = self.limit
         state.filter = self.filter.copy()
         return state

     def reset(self):

On 08/27/2011 10:35 AM, H-w25-c25 wrote:
> sudo emacs /usr/share/software-center/softwarecenter/ui/gtk3/panes/softwarepane.py