Forbid double quotes in values
This commit is contained in:
parent
33ccf7d8f0
commit
04f9086315
@ -393,6 +393,10 @@ 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);
|
||||
if(newval.countchars("\"")!=0){
|
||||
SaySomething("Double quotes are forbidden !");
|
||||
}
|
||||
else
|
||||
store.setValue(t, cast(int)crt.getData("colnumber"), newval);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user