Problem closing tabs
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
If session.getSessionSheet().removeMainTab() is used for closing a tab, any tab opened after this encounters erratic behavior. Let's say we open a tab T1 after closing T0, refreshComponent() of T1 is never fired. Let's we open T2 after this. T1::refreshComponent() is fired when T2 is clicked. The problem shifts by one when T1 is also closed. Once T1 is closed, T2.refreshComponent() will be fired when T4 is clicked.
This happens because the entry from _tabs is not removed in MainPanel::removeMainpanelTab() - the entry is removed from _tabPnl only. Subsequently a wrong tab ends up getting selected in MainPanel::performStateChanged().
Update.. I've reviewed this, and have no idea how to reproduce it.
Officially requesting the precise steps to reproduce this issue.
Set to pending according to Johnathan's entry.