~tomasgroth/openlp/pylint-fixes

« back to all changes in this revision

Viewing changes to openlp/core/ui/exceptiondialog.py

  • Committer: Philip Ridout
  • Author(s): Phill
  • Date: 2019-03-17 21:14:38 UTC
  • mfrom: (2846.2.12 fixes)
  • Revision ID: phill.ridout@gmail.com-20190317211438-0wq38b1f83c5t4k2
Fixes a few bugs, and some path lib refactors

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        self.save_report_button = create_button(exception_dialog, 'save_report_button',
78
78
                                                icon=UiIcons().save,
79
79
                                                click=self.on_save_report_button_clicked)
80
 
        self.attach_tile_button = create_button(exception_dialog, 'attach_tile_button',
 
80
        self.attach_file_button = create_button(exception_dialog, 'attach_file_button',
81
81
                                                icon=UiIcons().open,
82
82
                                                click=self.on_attach_file_button_clicked)
83
83
        self.button_box = create_button_box(exception_dialog, 'button_box', ['close'],
84
 
                                            [self.send_report_button, self.save_report_button, self.attach_tile_button])
 
84
                                            [self.send_report_button, self.save_report_button, self.attach_file_button])
85
85
        self.exception_layout.addWidget(self.button_box)
86
86
 
87
87
        self.retranslate_ui(exception_dialog)
112
112
                      ).format(first_part=exception_part1))
113
113
        self.send_report_button.setText(translate('OpenLP.ExceptionDialog', 'Send E-Mail'))
114
114
        self.save_report_button.setText(translate('OpenLP.ExceptionDialog', 'Save to File'))
115
 
        self.attach_tile_button.setText(translate('OpenLP.ExceptionDialog', 'Attach File'))
 
115
        self.attach_file_button.setText(translate('OpenLP.ExceptionDialog', 'Attach File'))