process: respect last window close
This commit is contained in:
parent
cf42b79faa
commit
bf166ca17d
|
@ -1079,6 +1079,8 @@ proc_info_free(Proc_Info *proc)
|
||||||
{
|
{
|
||||||
Proc_Info *t;
|
Proc_Info *t;
|
||||||
|
|
||||||
|
if (!proc) return;
|
||||||
|
|
||||||
EINA_LIST_FREE(proc->threads, t)
|
EINA_LIST_FREE(proc->threads, t)
|
||||||
{
|
{
|
||||||
proc_info_free(t);
|
proc_info_free(t);
|
||||||
|
|
|
@ -423,12 +423,13 @@ _ui_init_system_probe(Ui *ui)
|
||||||
static void
|
static void
|
||||||
_process_win_add(Evas_Object *parent, int pid, int delay)
|
_process_win_add(Evas_Object *parent, int pid, int delay)
|
||||||
{
|
{
|
||||||
|
const char *command = _("Unknown");
|
||||||
Proc_Info *proc;
|
Proc_Info *proc;
|
||||||
|
|
||||||
proc = proc_info_by_pid(pid);
|
proc = proc_info_by_pid(pid);
|
||||||
if (!proc) return;
|
if (proc) command = proc->command;
|
||||||
|
|
||||||
ui_process_win_add(parent, proc->pid, proc->command, delay);
|
ui_process_win_add(parent, pid, command, delay);
|
||||||
|
|
||||||
proc_info_free(proc);
|
proc_info_free(proc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue