Example #1
0
 def report(self):
     """Report a bug in qutebrowser."""
     pages = self._recover_pages()
     history = objreg.get('command-history')[-5:]
     objects = self.get_all_objects()
     self._crashdlg = crashdialog.ReportDialog(pages, history, objects)
     self._crashdlg.show()
Example #2
0
    def report(self, info=None, contact=None):
        """Report a bug in qutebrowser.

        Args:
            info: Information about the bug report. If given, no report dialog
                  shows up.
            contact: Contact information for the report.
        """
        pages = self._recover_pages()
        cmd_history = objreg.get('command-history')[-5:]
        all_objects = debug.get_all_objects()

        self._crash_dialog = crashdialog.ReportDialog(pages, cmd_history,
                                                      all_objects)

        if info is None:
            self._crash_dialog.show()
        else:
            self._crash_dialog.report(info=info, contact=contact)