Bug 130123 Disallow *
This commit is contained in:
parent
b6039e1f9e
commit
a2bb787e40
@ -716,6 +716,20 @@ public class MiCasa : Store
|
||||
ArrayList arrKeys = null,
|
||||
arrValues = null;
|
||||
|
||||
if ((true == entrySecretID.Editable) && (entrySecretID.Text.IndexOf("*") > -1))
|
||||
{
|
||||
// prompt user
|
||||
MessageDialog md=new MessageDialog(this.windowMain,Gtk.DialogFlags.Modal,
|
||||
Gtk.MessageType.Warning,
|
||||
Gtk.ButtonsType.Ok,
|
||||
"Secret ID may not contain \"*\"");
|
||||
|
||||
md.Response += new ResponseHandler(md_Response);
|
||||
md.SetPosition(Gtk.WindowPosition.CenterOnParent);
|
||||
md.Modal = true;
|
||||
md.Show();
|
||||
}
|
||||
|
||||
if( (true == entrySecretID.Editable) && ("" != entrySecretID.Text) && (tvKeyValue.Model.IterNChildren() > 0) )
|
||||
{
|
||||
Logger.DbgLog("GUI:MiCasa.on_buttonNewOk_clicked() - Adding New Secrets and KeyValues.");
|
||||
@ -1114,7 +1128,14 @@ public class MiCasa : Store
|
||||
}
|
||||
/// LINK
|
||||
|
||||
|
||||
private void md_Response(object o, ResponseArgs args)
|
||||
{
|
||||
MessageDialog md = (MessageDialog)o;
|
||||
if (md != null)
|
||||
{
|
||||
md.Destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
///##################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user