Fix treeview context menu

Fix some warnings

Signed-off-by: Maël Lavault <mael.lavault@mailz.org>