Issue 111419 - [CWS npower13_objectmodules] Tab deletion broken
Summary: [CWS npower13_objectmodules] Tab deletion broken
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: DEV300m75
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 3.3
Assignee: ab
QA Contact: issues@framework
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2010-05-06 08:25 UTC by joerg.skottke
Modified: 2017-05-20 10:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch to fix issue (1.54 KB, patch)
2010-05-06 12:56 UTC, noel.power
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description joerg.skottke 2010-05-06 08:25:25 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.
Comment 1 joerg.skottke 2010-05-06 08:26:44 UTC
.
Comment 2 noel.power 2010-05-06 12:56:41 UTC
Created attachment 69337 [details]
patch to fix issue
Comment 3 noel.power 2010-05-06 13:00:51 UTC
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 ) 
Comment 4 joerg.skottke 2010-05-12 06:50:48 UTC
Fixed
Comment 5 joerg.skottke 2010-05-12 06:51:29 UTC
Verified by autotest