Fix crashes
offlate/ui/config/settings.py
118 | 118 | vbox.addLayout(buttons) | |
119 | 119 | self.setLayout(vbox) | |
120 | 120 | ||
121 | + | def data(self): | |
122 | + | return self.widget.data | |
123 | + | ||
121 | 124 | class SettingsWidget(QWidget): | |
122 | 125 | def __init__(self, parent=None, manager=None): | |
123 | 126 | super().__init__(parent) |
offlate/ui/manager.py
199 | 199 | w = SystemSettingsWindow(self.manager, system) | |
200 | 200 | w.exec_() | |
201 | 201 | if w.done: | |
202 | - | self.manager.updateSettings(w.data) | |
202 | + | self.manager.updateSettings(w.data()) | |
203 | 203 | return True | |
204 | 204 | return False | |
205 | 205 |