[ 1713668 ] "View" menu elements dont open result window

- Previous patch by red1 is bad, dispose is needed if the info window is open from lookup field.
This commit is contained in:
Heng Sin Low 2007-05-09 00:50:14 +00:00
parent 9741cf545f
commit cd7b94b876
1 changed files with 5 additions and 2 deletions

View File

@ -919,10 +919,13 @@ public abstract class Info extends CDialog
// "ClickCount=" + e.getClickCount() + ", Right=" + SwingUtilities.isRightMouseButton(e)
// + ", r=" + m_table.getSelectedRow() + ", c=" + m_table.getSelectedColumn());
// Double click with selected row => exit
// Double click with selected row => exit/zoom
if (e.getClickCount() > 1 && p_table.getSelectedRow() != -1)
{
zoom(); // replacing dispose(true) so that it wouldnt just exit; // double_click same as OK
if (p_WindowNo == 0)
zoom();
else
dispose(true);
}
// Right Click => start Calculator
else if (SwingUtilities.isRightMouseButton(e))