KMessageDialog: fix setButtons() being called twice
I introduced buggy behaviour in 5.85 by changing the code to call setButtons() by default, doing so broke KIO has been calling setButtons() because that was the only way to have a KMessageDialog with buttons.
This supersedes commit de639a26, I think this is a better fix, just making sure we connect once.
Edited by Ahmad Samir