Menu

#999 Problem closing tabs

None
pending
Core (462)
5
2018-12-22
2011-08-09
No

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().

Discussion

  • Johnathan James

    Johnathan James - 2013-01-07

    Update.. I've reviewed this, and have no idea how to reproduce it.

    Officially requesting the precise steps to reproduce this issue.

     
  • Gerd Wagner

    Gerd Wagner - 2013-01-08
    • status: open --> pending
    • milestone: --> 2.1final
     
  • Gerd Wagner

    Gerd Wagner - 2013-01-08

    Set to pending according to Johnathan's entry.

     
  • Gerd Wagner

    Gerd Wagner - 2013-01-08
    • assigned_to: Colin Bell --> Gerd Wagner
     

Log in to post a comment.