qtui: fix opening entire directories with the file dialog