Comment 40 for bug 426429

Revision history for this message
In , Andreas Pakulat (apaku) wrote :

(In reply to comment #33)
> SVN commit 1055891 by dymo:
>
> Fix tab activation bug after closing another tabs without switching to them
> (for example clicking on another tab's close button).
> We should remove the widget from container's stack before removing it from the
> tabbar,
> tabbar activates new widget by its index, and if the old one is still in stack,
> then
> indices are off by one.
> For me this also fixes the crash in ctrl-tab document switcher (which probably
> got
> activation signal of the view which was already deleted).

Hmm, one thing that I found out earlier is that there seems to be one document not being deleted during initialization of areas. That was very early during setup of the gui, an area was created, a document automatically loaded, then the area was "closed" or something but the document hasn't been removed again from the list of open documents.

This could be reproduced by having 1 document that is automatically opened, then close it and open it again. Open a second one and then switch between them. (IIRC).