core: fix null ptr deref ; ui_qt: make tabs closable, print cfg even if there is no edge