Fix #48

• set_view_index is wierd, hardcode group&index to avoid crash;
• add trick, to avoid unexpected movements on switching project in
current window;
• fix in show.py to avoid exception when there was no prev_focus, and
unexpected changing order of tabs