mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

ListBox should inherit from DeathListener and remove select listeners upon death events #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The topic says it all.

Original issue reported on code.google.com by olof.nae...@gmail.com on 3 Sep 2008 at 6:37

GoogleCodeExporter commented 9 years ago
On a second thought, selection listeners are not widgets. This is an unsolvable 
problem. If a selection listener is deleted and not removed from a ListBox, 
Guichan 
will crash if an event is fired. Perhaps it's acceptable.

Original comment by olof.nae...@gmail.com on 3 Sep 2008 at 6:43

GoogleCodeExporter commented 9 years ago
This is one of the reasons why Qt has an object (QObject) on top of QWidget, 
which
has death-listener like functionality. Anyway, I think it is perfectly 
acceptable.
I've added notes in the documentation about this for ListBox and DropDown in 
revision
1120.

Original comment by b.lindeijer on 4 Sep 2008 at 7:21