fixed double-handling of pressing a button after moving to the latest version of QT