~ev/apport/grouped_reports

« back to all changes in this revision

Viewing changes to gtk/apport-gtk

  • Committer: Evan Dandrea
  • Date: 2013-01-18 17:27:45 UTC
  • Revision ID: evan.dandrea@canonical.com-20130118172745-q1dsppeprc58lfws
Instead of showing a pop-up dialog explaining that there was an error parsing the report, embed that information in the details view. We'll also send these invalid reports to daisy.ubuntu.com anyway, for statistical purposes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
                keyiter = self.tree_model.insert_before(None, None)
122
122
                self.tree_model.set_value(keyiter, 0, '')
123
123
 
 
124
            if 'InvalidReason' in keys:
 
125
                # This report is invalid, but we need to tell the user that
 
126
                # we're going to send it for statistical purposes.
 
127
                keyiter = self.tree_model.insert_before(None, None)
 
128
                self.tree_model.set_value(keyiter, 0, report['InvalidReason'])
 
129
                continue
 
130
 
124
131
            for key in keys:
125
132
                keyiter = self.tree_model.insert_before(None, None)
126
133
                self.tree_model.set_value(keyiter, 0, key)