Add validate before insert
This commit is contained in:
parent
e024c17de9
commit
e435520ede
Binary file not shown.
|
@ -46,6 +46,12 @@ class Controllers(object):
|
|||
return
|
||||
|
||||
def cmd_insert_action(self, event):
|
||||
data = self.d.text.value
|
||||
if not data:
|
||||
msg = _('Write some code')
|
||||
app.errorbox(msg)
|
||||
return
|
||||
|
||||
msg = _('You shure insert this equation')
|
||||
if not app.question(msg):
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue