Ticket #2464: find file: don't check content regexp

...if search for content is not used.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-01-05 15:04:42 +03:00
parent 3a25fb1b51
commit 186b2ff3f7

View File

@ -437,7 +437,7 @@ find_parm_callback (Dlg_head * h, Widget * sender, dlg_msg_t msg, int parm, void
}
/* check content regexp */
if ((content_regexp_cbox->state & C_BOOL)
if ((content_use_cbox->state & C_BOOL) && (content_regexp_cbox->state & C_BOOL)
&& (in_with->buffer[0] != '\0') && !find_check_regexp (in_with->buffer))
{
h->state = DLG_ACTIVE; /* Don't stop the dialog */