Forbid double quotes in values

master
Crom (Thibaut CHARLES) 8 years ago
parent 33ccf7d8f0
commit 04f9086315
  1. 6
      source/app.d

@ -393,7 +393,11 @@ auto ref SetupColumn(TreeView tree, string sName, size_t index){
else{
cr.addOnEdited((string path, string newval, CellRendererText crt){
TreeIter t = new TreeIter(tree.getModel(), path);
store.setValue(t, cast(int)crt.getData("colnumber"), newval);
if(newval.countchars("\"")!=0){
SaySomething("Double quotes are forbidden !");
}
else
store.setValue(t, cast(int)crt.getData("colnumber"), newval);
});
}

Loading…
Cancel
Save