Solved double slot problem. Qt automatically connects slots of the name
on_bnFooBar_clicked, so connecting them a second time cause the slot to
be called twice for every signal event.