forked from enlightenment/edi
logpanel: fix crash when appending lots of lines.
Surround elm_code_file_line_append() with ecore_main_loop_begin/end. Fixes a crash when there are lots of errors to report. @fix
This commit is contained in:
parent
6be9ee49c6
commit
5c7a29b521
|
@ -50,8 +50,11 @@ _edi_logpanel_print_cb(const Eina_Log_Domain *domain, Eina_Log_Level level,
|
||||||
domain->domain_str, file, fnc, line);
|
domain->domain_str, file, fnc, line);
|
||||||
vsnprintf(buffer + printed, buffer_len - printed, fmt, args);
|
vsnprintf(buffer + printed, buffer_len - printed, fmt, args);
|
||||||
|
|
||||||
|
ecore_thread_main_loop_begin();
|
||||||
|
|
||||||
elm_code_file_line_append(_elm_code->file, buffer, strlen(buffer),
|
elm_code_file_line_append(_elm_code->file, buffer, strlen(buffer),
|
||||||
(level <= EINA_LOG_LEVEL_ERR) ? _EDI_LOG_ERROR : NULL);
|
(level <= EINA_LOG_LEVEL_ERR) ? _EDI_LOG_ERROR : NULL);
|
||||||
|
ecore_thread_main_loop_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue