~gary-lasker/software-center/fix-crash-lp857989

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/app.py

  • Committer: Gary Lasker
  • Date: 2011-09-24 04:13:12 UTC
  • Revision ID: gary.lasker@canonical.com-20110924041312-rfne7p75ccgnssm9
don't crash if we have no active_pane

Show diffs side-by-side

added added

removed removed

Lines of Context:
618
618
        # get our active pane
619
619
        vm = get_viewmanager()
620
620
        if vm is None:
621
 
            return
 
621
            return False
 
622
            
622
623
        self.active_pane = vm.get_view_widget(vm.get_active_view())
 
624
        if self.active_pane is None:
 
625
            return False
623
626
 
624
627
        # determine the current app
625
628
        app = self.active_pane.get_current_app()