* unregister bug, fixed minor error in disposing of vtabbedpane and gridcontroller.
This commit is contained in:
parent
1b8cbd2eee
commit
d920109b47
|
@ -199,13 +199,19 @@ public class GridController extends CPanel
|
||||||
log.config( "(" + m_mTab.toString() + ")");
|
log.config( "(" + m_mTab.toString() + ")");
|
||||||
// clear info
|
// clear info
|
||||||
stopEditor(false);
|
stopEditor(false);
|
||||||
if (m_mTab.needSave(true, false))
|
if (m_mTab.isLoadComplete())
|
||||||
m_mTab.dataIgnore();
|
{
|
||||||
|
if (m_mTab.needSave(true, false))
|
||||||
|
m_mTab.dataIgnore();
|
||||||
|
}
|
||||||
vIncludedGC = null;
|
vIncludedGC = null;
|
||||||
|
|
||||||
// Listeners
|
// Listeners
|
||||||
m_mTab.getTableModel().removeDataStatusListener(this);
|
if (m_mTab.isLoadComplete())
|
||||||
m_mTab.getTableModel().removeVetoableChangeListener(this);
|
{
|
||||||
|
m_mTab.getTableModel().removeDataStatusListener(this);
|
||||||
|
m_mTab.getTableModel().removeVetoableChangeListener(this);
|
||||||
|
}
|
||||||
vTable.getSelectionModel().removeListSelectionListener(this);
|
vTable.getSelectionModel().removeListSelectionListener(this);
|
||||||
m_mTab.removePropertyChangeListener(vTable);
|
m_mTab.removePropertyChangeListener(vTable);
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ public class VTabbedPane extends CTabbedPane
|
||||||
else if (comp[i] instanceof GridController)
|
else if (comp[i] instanceof GridController)
|
||||||
{
|
{
|
||||||
GridController gc = (GridController)comp[i];
|
GridController gc = (GridController)comp[i];
|
||||||
gc.addDataStatusListener(aPanel);
|
gc.removeDataStatusListener(aPanel);
|
||||||
gc.dispose();
|
gc.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue