Fix opening settings window from the editor

Julien LepillerSun Nov 10 14:52:11+0100 2019

ba89acf

Fix opening settings window from the editor

CHANGELOG.md

2626
* Fix crashes caused by an empty initial configuration, especially at first run,
2727
  in the settings window and the new project window.
2828
* Fix incorrect error message caused by missing import.
29+
* Fix crash when opening settings window from the editor
2930
3031
### Languages ###
3132

offlate/ui/editor.py

419419
        self.tabs.removeTab(self.tabs.currentIndex())
420420
421421
    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()
426423
427424
    def filter(self):
428425
        for i in range(0, self.tabs.count()):

offlate/ui/manager.py

5858
    def new(self):
5959
        self.projectManagerWidget.new()
6060
61+
    def settings(self):
62+
        self.projectManagerWidget.settings()
63+
6164
class ProjectManagerWidget(QWidget):
6265
    def __init__(self, parent=None):
6366
        super().__init__(parent)