IDEMPIERE-5535 - Fixed warning dialog shown wrongly (#1631)
* IDEMPIERE-5535 - Fixed warning dialog shown wrongly * IDEMPIERE-5535 - Fixed warning dialog shown wrongly in other classes
This commit is contained in:
parent
5bcf7178af
commit
920bf2d6e9
|
@ -1791,7 +1791,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
isImporting = gridTable.isImporting();
|
||||
}
|
||||
if (!isImporting) {
|
||||
Dialog.warn(curWindowNo, e.getAD_Message(), e.getInfo());
|
||||
Dialog.warn(curWindowNo, e.getAD_Message(), e.getInfo(), null);
|
||||
e.setConfirmed(true); // show just once - if MTable.setCurrentRow is involved the status event is re-issued
|
||||
}
|
||||
}
|
||||
|
|
|
@ -490,7 +490,7 @@ public class LoginPanel extends Window implements EventListener<Event>
|
|||
}
|
||||
catch (Exception e) {
|
||||
String message = e.getMessage();
|
||||
Dialog.warn(0, "URLnotValid", message);
|
||||
Dialog.warn(0, "URLnotValid", message, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -103,6 +103,8 @@ public class FDialog
|
|||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link Dialog}.warn(windowNo, adMessage, message, null) instead
|
||||
*
|
||||
* Display warning with warning icon
|
||||
* @param windowNo Number of Window
|
||||
* @param comp
|
||||
|
|
|
@ -2443,7 +2443,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
|
|||
String name = selected;
|
||||
if ((fQueryName.getSelectedIndex() == 0 || name.equals(m_sNew)) && saveQuery){ // New query - needs a name
|
||||
|
||||
Dialog.warn(m_targetWindowNo, "NeedsName", name);
|
||||
Dialog.warn(m_targetWindowNo, "NeedsName", name, null);
|
||||
return;
|
||||
}
|
||||
if (saveQuery){
|
||||
|
@ -2470,7 +2470,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
|
|||
} else if (code.length() <= 0){ // Delete the query
|
||||
if (uq == null)
|
||||
{
|
||||
Dialog.warn(m_targetWindowNo, "NeedsQuery", name);
|
||||
Dialog.warn(m_targetWindowNo, "NeedsQuery", name, null);
|
||||
return;
|
||||
}
|
||||
if (uq.delete(true))
|
||||
|
@ -2479,7 +2479,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
|
|||
refreshUserQueries();
|
||||
}
|
||||
else
|
||||
Dialog.warn(m_targetWindowNo, "DeleteError", name);
|
||||
Dialog.warn(m_targetWindowNo, "DeleteError", name, null);
|
||||
return;
|
||||
}
|
||||
uq.setCode (code.toString());
|
||||
|
|
|
@ -768,7 +768,7 @@ public class WLocationDialog extends Window implements EventListener<Event>
|
|||
}
|
||||
catch (Exception e) {
|
||||
message = e.getMessage();
|
||||
Dialog.warn(0, "URLnotValid", message);
|
||||
Dialog.warn(0, "URLnotValid", message, null);
|
||||
}
|
||||
}
|
||||
else if (toRoute.equals(event.getTarget()))
|
||||
|
@ -787,7 +787,7 @@ public class WLocationDialog extends Window implements EventListener<Event>
|
|||
}
|
||||
catch (Exception e) {
|
||||
message = e.getMessage();
|
||||
Dialog.warn(0, "URLnotValid", message);
|
||||
Dialog.warn(0, "URLnotValid", message, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue