xhydra -q support patch

This commit is contained in:
van Hauser 2014-11-22 19:51:58 +01:00
parent 4a1c774531
commit 32ccf4ae15
3 changed files with 18 additions and 3 deletions

View file

@ -228,6 +228,12 @@ int hydra_get_options(char *options[]) {
options[i++] = "-F";
}
/* Do not print messages about connection errors */
widget = lookup_widget(GTK_WIDGET(wndMain), "chkNoErr");
if (gtk_toggle_button_get_active((GtkToggleButton *) widget)) {
options[i++] = "-q";
}
/* get additional parameters */
widget = lookup_widget(GTK_WIDGET(wndMain), "entProtocol");
tmp = (char *) gtk_entry_get_text((GtkEntry *) widget);