From 91047637b05ac5f3491af37514e7e814ab8acd65 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 26 Jun 2007 19:14:12 +0000 Subject: [PATCH] In Location Dialog don't show Online button for countries not configured --- .../org/compiere/grid/ed/VLocationDialog.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/client/src/org/compiere/grid/ed/VLocationDialog.java b/client/src/org/compiere/grid/ed/VLocationDialog.java index 23e5bf3bb2..f30080de78 100644 --- a/client/src/org/compiere/grid/ed/VLocationDialog.java +++ b/client/src/org/compiere/grid/ed/VLocationDialog.java @@ -233,10 +233,14 @@ public class VLocationDialog extends CDialog } // disable online if this country doesn't have post code lookup - if (m_location.getCountry().isPostcodeLookup()) + if (m_location.getCountry().isPostcodeLookup()) { fOnline.setEnabled(true); - else + fOnline.setVisible(true); + } + else { fOnline.setEnabled(false); + fOnline.setVisible(false); + } fCountry.setSelectedItem(country); } @@ -298,10 +302,14 @@ public class VLocationDialog extends CDialog m_location.setCountry(c); // refresh online button for new country - if (c.isPostcodeLookup()) + if (c.isPostcodeLookup()) { fOnline.setEnabled(true); - else + fOnline.setVisible(true); + } + else { fOnline.setEnabled(false); + fOnline.setVisible(false); + } // update the region name if regions are enabled for this country if (c.isHasRegion())