Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-08-10 18:08:06 +0400
committerYann Leboulanger <asterix@lagaule.org>2010-08-10 18:08:06 +0400
commit61b26858d5d6121f45abe370004ecf2589e6c7e8 (patch)
treee1cde3f74b2b03dc1331fa97edf50f73e8801b94 /src/adhoc_commands.py
parenteffa7cedfbff1c9a5a9da7f188dffe9177154dba (diff)
check jid-single and jid-multi fields when filling ad-hoc commands. Fixes #5829
Diffstat (limited to 'src/adhoc_commands.py')
-rw-r--r--src/adhoc_commands.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/adhoc_commands.py b/src/adhoc_commands.py
index 5add272fe..69d3568db 100644
--- a/src/adhoc_commands.py
+++ b/src/adhoc_commands.py
@@ -331,7 +331,14 @@ class CommandWindow:
def stage3_submit_form(self, action='execute'):
self.data_form_widget.set_sensitive(False)
+
if self.data_form_widget.get_data_form():
+ df = self.data_form_widget.get_data_form()
+ if not df.is_valid():
+ dialogs.ErrorDialog(_('Invalid Form'),
+ _('The form is not filled correctly.'))
+ self.data_form_widget.set_sensitive(True)
+ return
self.data_form_widget.data_form.type = 'submit'
else:
self.data_form_widget.hide()