* [ 1684137 ] File Logout is not closing Viewer windows
This commit is contained in:
parent
032b64d168
commit
7eb00b551e
|
@ -315,7 +315,7 @@ public final class AEnv
|
||||||
}
|
}
|
||||||
else if (actionCommand.equals("Logout"))
|
else if (actionCommand.equals("Logout"))
|
||||||
{
|
{
|
||||||
AMenu aMenu = (AMenu)Env.getWindow(WindowNo);
|
AMenu aMenu = (AMenu)Env.getWindow(0);
|
||||||
aMenu.logout();
|
aMenu.logout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,8 @@ public class AReport implements ActionListener
|
||||||
{
|
{
|
||||||
// It's a default report using the standard printing engine
|
// It's a default report using the standard printing engine
|
||||||
ReportEngine re = new ReportEngine (Env.getCtx(), pf, m_query, info);
|
ReportEngine re = new ReportEngine (Env.getCtx(), pf, m_query, info);
|
||||||
new Viewer(re);
|
Viewer viewer = new Viewer(re);
|
||||||
|
AEnv.addToWindowManager(viewer);
|
||||||
}
|
}
|
||||||
// if (m_popup.isVisible())
|
// if (m_popup.isVisible())
|
||||||
// m_popup.setVisible(false);
|
// m_popup.setVisible(false);
|
||||||
|
|
|
@ -386,6 +386,7 @@ public class Viewer extends CFrame
|
||||||
AEnv.addMenuItem("Export", null, null, mFile, this);
|
AEnv.addMenuItem("Export", null, null, mFile, this);
|
||||||
mFile.addSeparator();
|
mFile.addSeparator();
|
||||||
AEnv.addMenuItem("End", null, KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.ALT_MASK), mFile, this);
|
AEnv.addMenuItem("End", null, KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.ALT_MASK), mFile, this);
|
||||||
|
AEnv.addMenuItem("Logout", null, KeyStroke.getKeyStroke(KeyEvent.VK_L, Event.SHIFT_MASK+Event.ALT_MASK), mFile, this);
|
||||||
AEnv.addMenuItem("Exit", null, KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.SHIFT_MASK+Event.ALT_MASK), mFile, this);
|
AEnv.addMenuItem("Exit", null, KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.SHIFT_MASK+Event.ALT_MASK), mFile, this);
|
||||||
|
|
||||||
// View
|
// View
|
||||||
|
|
Loading…
Reference in New Issue