Replaced use of xmessage with QMessageBox