[ 1717125 ] Frequently checking for new Requests/Notices

- fixed logout issue
This commit is contained in:
Heng Sin Low 2008-01-15 01:07:23 +00:00
parent 5f1c64f152
commit 529901a54d
1 changed files with 10 additions and 6 deletions

View File

@ -440,7 +440,14 @@ public final class AMenu extends CFrame
*/ */
public void dispose() public void dispose()
{ {
// clean up - close windows preDispose();
//
super.dispose();
AEnv.exit(0);
} // dispose
private void preDispose() {
// clean up - save window state
Ini.setWindowDimension(0, getSize()); Ini.setWindowDimension(0, getSize());
Ini.setDividerLocation(treePanel.getDividerLocation()); Ini.setDividerLocation(treePanel.getDividerLocation());
Ini.setWindowLocation(0, getLocation()); Ini.setWindowLocation(0, getLocation());
@ -454,15 +461,12 @@ public final class AMenu extends CFrame
infoUpdaterThread = null; infoUpdaterThread = null;
infoUpdater = null; infoUpdater = null;
} }
// }
super.dispose();
AEnv.exit(0);
} // dispose
public void logout() public void logout()
{ {
windowManager.close(); windowManager.close();
Ini.saveProperties(true); preDispose();
super.dispose(); super.dispose();
AEnv.logout(); AEnv.logout();
} }