Reported by norrumar on 2013-07-09 15:51
NVDA allows to open addons manager when it's already opened. This produces an error when trying to close this dialog.
Step to reproduce:
1. Open the addons manager.
2. Open it again.
3. Try to close this dialog.
Actual result: It's not possible to close it due to a dead object error.
Expected result: Dialog shouldn't be reopened.
Attachment nvda.log added by norrumar on 2013-07-09 15:52
Log file for this ticket
Comment 1 by beqa on 2013-07-09 17:15
i can't understand for what is responsible this code.
#instance = None
#def __new_(cls, args, *kwargs):
#if AddonsDialog.instance is None:
#AddonsDialog.instance = super(AddonsDialog, cls).__new(cls, args, *kwargs)
without this everything works well
Comment 2 by beqa on 2013-07-09 17:16
or maybe display a message that one instance is opened, please close first.
Comment 3 by norrumar on 2013-07-09 17:21
Hi Beqa: I have fixed this issue in a different way, by changing init.py contained in gui.
if AddonsDialog._instance is not None:
This is done on branch t3351, available at
Comment 4 by ondrosik on 2013-07-09 18:00
Not sure but other dialogs just get focus, see for example the log wiever. So I think that this should be done in the same way.
Comment 5 by jteh on 2013-07-10 00:16
Milestone changed from None to next
Comment 6 by James Teh <jamie@... on 2013-07-10 01:15
```CommitTicketReference repository="" revision="9271e32bf8dc0df19aa15d466625cdfb757d9f54"
If the Add-ons Manager is already open, activating it again (either from the Tools menu or by opening an add-on file) no longer fails or makes it impossible to close the Add-ons Manager.
AddonsDialog was already a singleton, but the constructor was being called even when there was already an instance, which was causing all sorts of breakage.
Comment 7 by James Teh <jamie@... on 2013-07-10 01:24
```CommitTicketReference repository="" revision="36ac0c8ec09074937c4a152851d6e5d2643f12f0"
Merge branch 't3351' into next
Added labels: incubating
Comment 8 by Michael Curran <mick@... on 2013-07-25 03:24
```CommitTicketReference repository="" revision="1100a05def8a6a6f1123ef39db179697708e2806"
If the Add-ons Manager is already open, activating it again (either from the Tools menu or by opening an add-on file) no longer fails or makes it impossible to close the Add-ons Manager. Fixes #3351.
Removed labels: incubating
Comment 9 by mdcurran on 2013-07-25 03:27
Milestone changed from next to 2013.2