ifpending repaired. Show page "all contacts" directly if no pending connections.

Tried to repair. Think the merge of flags was wrong in the last
commit.