Overview
| Comment: | [lo] LexiconEditor: fix close/reopen bug | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | lo | 
| Files: | files | file ages | folders | 
| SHA3-256: | fa81cd22766ca9318699cb4efb338d03 | 
| User & Date: | olr on 2025-09-11 10:31:32 | 
| Other Links: | manifest | tags | 
Context
| 2025-09-11 | ||
| 11:23 | [build] coding style check-in: 8d356dc23c user: olr tags: trunk, build | |
| 10:31 | [lo] LexiconEditor: fix close/reopen bug check-in: fa81cd2276 user: olr tags: trunk, lo | |
| 08:59 | [fr] mise à jour du dictionnaire check-in: e7c847b869 user: olr tags: trunk, fr | |
Changes
Modified gc_lang/fr/oxt/DictOptions/LexiconEditor.py from [3308c2d10a] to [f2a6c36bbb].
| ︙ | ︙ | |||
| 324 325 326 327 328 329 330 | 
            elif xActionEvent.ActionCommand == "Import":
                self.importDictionary()
            elif xActionEvent.ActionCommand == "Export":
                self.exportDictionary()
            elif xActionEvent.ActionCommand == 'Info':
                pass
            elif xActionEvent.ActionCommand == "Close":
 | | < < | | 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 | 
            elif xActionEvent.ActionCommand == "Import":
                self.importDictionary()
            elif xActionEvent.ActionCommand == "Export":
                self.exportDictionary()
            elif xActionEvent.ActionCommand == 'Info':
                pass
            elif xActionEvent.ActionCommand == "Close":
                self.closeWindow()
        except:
            traceback.print_exc()
    # XTopWindowListener (useful for non modal dialog only)
    def windowOpened (self, xEvent):
        return
    def windowClosing (self, xEvent):
        self.closeWindow()
    def windowClosed (self, xEvent):
        return
    def windowMinimized (self, xEvent):
        return
 | 
| ︙ | ︙ | |||
| 667 668 669 670 671 672 673 674 675 676 | 
        nSelectedEntries = len(self.xGridControlLex.getSelectedRows())
        for i in self.xGridControlLex.getSelectedRows():
            if i < xGridDataModel.RowCount:
                xGridDataModel.removeRow(i)
        self.xGridControlLex.deselectAllRows()
        self.xNumLex.Label = str(xGridDataModel.RowCount)
#g_ImplementationHelper = unohelper.ImplementationHelper()
#g_ImplementationHelper.addImplementation(LexiconEditor, 'net.grammalecte.LexiconEditor', ('com.sun.star.task.Job',))
 | > > > > > | 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 | 
        nSelectedEntries = len(self.xGridControlLex.getSelectedRows())
        for i in self.xGridControlLex.getSelectedRows():
            if i < xGridDataModel.RowCount:
                xGridDataModel.removeRow(i)
        self.xGridControlLex.deselectAllRows()
        self.xNumLex.Label = str(xGridDataModel.RowCount)
    def closeWindow (self):
        self.bClosed = True
        self.xContainer.dispose()           # Non modal dialog
        #self.xContainer.endExecute()       # Modal dialog
#g_ImplementationHelper = unohelper.ImplementationHelper()
#g_ImplementationHelper.addImplementation(LexiconEditor, 'net.grammalecte.LexiconEditor', ('com.sun.star.task.Job',))
 |