IDEMPIERE-4945 Selected row is changed after table sort in Swing UI (#865)
At the end of table sorting, trigger data status change event before UI event, so that GridTab data is changed before UI refresh, which is needed for Swing UI.
This commit is contained in:
parent
ae5a665dd8
commit
7f09b1adc5
|
@ -1013,10 +1013,10 @@ public class GridTable extends AbstractTableModel
|
|||
|
||||
if (!isSameSortEntries)
|
||||
{
|
||||
// update UI
|
||||
fireTableDataChanged();
|
||||
// Info detected by MTab.dataStatusChanged and current row set to 0
|
||||
fireDataStatusIEvent(SORTED_DSE_EVENT, "#" + m_sort.size());
|
||||
// update UI
|
||||
fireTableDataChanged();
|
||||
}
|
||||
} // sort
|
||||
|
||||
|
|
Loading…
Reference in New Issue