Apache OpenOffice (AOO) Bugzilla – Issue 111419
[CWS npower13_objectmodules] Tab deletion broken
Last modified: 2017-05-20 10:23:48 UTC
Automated test: f_basic_modules.bas::tMore_Modules_Dialogs() Reproduction: - Open a new writer document - Create a BASIC module for the document - Create multiple (the test creates 20) new modules using right click on the tab-bar - Delete the modules by right clicking and selecting "Delete" -> One click on "Delete" can remove multiple modules (the test removes all 20 modules with only 16 "Delete" actions). Related weirdnesses are: - when re-inserting new modules after all prior modules have been deleted the first module is named "module3" (should be "module1"), so it looks as if the indexing is broken or the other tabs are still there but hidden. - The tabs are sorted alphabetically, not by index ("module1", "module10", "module2" etc.) which is strange but may be an old problem i've just never noticed.
.
Created attachment 69337 [details] patch to fix issue
I enabled the listener for application script libraries too, this is because general code has been changed in response to the expectation that the listener will already take care of adding/deleting module windows. For example in application basic I just noticed if you rename a module ( using the tab->right-click->rename ) you end up with 2 tabs/modules ( with the same name )
Fixed
Verified by autotest