Fixed #21. Checked return value of QMessageBox.question().