Fix regression where applications are shown always - last tab is ignored.
Fix segfault and/or losing custom icons when opening preferences