Ticket #3179: do not consider "String not found" mwssage as error.

If some string isn't found it is a normal situation, not en error.
So show "String not found" message as normal dialog not as error one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-03-14 10:01:21 +04:00
parent a9d02894a1
commit c8eb0f4c96
4 changed files with 5 additions and 5 deletions

View File

@ -229,7 +229,7 @@ mcdiffview_do_search (WDiff * dview)
if (!present_result) if (!present_result)
{ {
dview->search.last_found_line = -1; dview->search.last_found_line = -1;
error_dialog (_("Search"), _("Search string not found")); query_dialog (_("Search"), _("Search string not found"), D_NORMAL, 1, _("&Dismiss"));
} }
} }

View File

@ -72,7 +72,7 @@
#define get_sys_error(s) (s) #define get_sys_error(s) (s)
#define edit_error_dialog(h,s) query_dialog (h, s, D_ERROR, 1, _("&Dismiss")) #define edit_error_dialog(h,s) query_dialog (h, s, D_ERROR, 1, _("&Dismiss"))
#define edit_query_dialog(h,s) query_dialog (h, s, D_NORMAL, 1, _("&Dismiss"))
#define edit_query_dialog2(h,t,a,b) query_dialog (h, t, D_NORMAL, 2, a, b) #define edit_query_dialog2(h,t,a,b) query_dialog (h, t, D_NORMAL, 2, a, b)
#define edit_query_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c) #define edit_query_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c)

View File

@ -977,7 +977,7 @@ edit_do_search (WEdit * edit)
{ {
edit->search_start = edit->buffer.curs1; edit->search_start = edit->buffer.curs1;
if (edit->search->error_str != NULL) if (edit->search->error_str != NULL)
edit_error_dialog (_("Search"), edit->search->error_str); edit_query_dialog (_("Search"), edit->search->error_str);
} }
} }
@ -2549,7 +2549,7 @@ edit_replace_cmd (WEdit * edit, int again)
if (!(edit->search->error == MC_SEARCH_E_OK || if (!(edit->search->error == MC_SEARCH_E_OK ||
(once_found && edit->search->error == MC_SEARCH_E_NOTFOUND))) (once_found && edit->search->error == MC_SEARCH_E_NOTFOUND)))
{ {
edit_error_dialog (_("Search"), edit->search->error_str); edit_query_dialog (_("Search"), edit->search->error_str);
} }
break; break;
} }

View File

@ -343,7 +343,7 @@ mcview_do_search (mcview_t * view)
} }
if (!isFound && view->search->error_str != NULL) if (!isFound && view->search->error_str != NULL)
message (D_NORMAL, _("Search"), "%s", view->search->error_str); query_dialog (_("Search"), view->search->error_str, D_NORMAL, 1, _("&Dismiss"));
view->dirty++; view->dirty++;
mcview_update (view); mcview_update (view);