Fix opening settings window from the editor
CHANGELOG.md
26 | 26 | * Fix crashes caused by an empty initial configuration, especially at first run, | |
27 | 27 | in the settings window and the new project window. | |
28 | 28 | * Fix incorrect error message caused by missing import. | |
29 | + | * Fix crash when opening settings window from the editor | |
29 | 30 | ||
30 | 31 | ### Languages ### | |
31 | 32 |
offlate/ui/editor.py
419 | 419 | self.tabs.removeTab(self.tabs.currentIndex()) | |
420 | 420 | ||
421 | 421 | def settings(self): | |
422 | - | w = SettingsWindow(self.manager.getConf()) | |
423 | - | w.exec_() | |
424 | - | if w.done: | |
425 | - | self.manager.updateSettings(w.data) | |
422 | + | self.projectManagerWindow.settings() | |
426 | 423 | ||
427 | 424 | def filter(self): | |
428 | 425 | for i in range(0, self.tabs.count()): |
offlate/ui/manager.py
58 | 58 | def new(self): | |
59 | 59 | self.projectManagerWidget.new() | |
60 | 60 | ||
61 | + | def settings(self): | |
62 | + | self.projectManagerWidget.settings() | |
63 | + | ||
61 | 64 | class ProjectManagerWidget(QWidget): | |
62 | 65 | def __init__(self, parent=None): | |
63 | 66 | super().__init__(parent) |