Bugfix: Wrong use of MessageBox.question.

This commit is contained in:
Ludger Küperkoch 2017-01-26 16:24:07 +01:00
parent 41ca6114b1
commit a3d3c02773

View File

@ -586,8 +586,7 @@ class MainWindow(QMainWindow):
ans = QMessageBox.question(self, self.tr("Overwrite file..."), ans = QMessageBox.question(self, self.tr("Overwrite file..."),
self.tr("File already exists: {0}\n".format(fbasename + exform) + \ self.tr("File already exists: {0}\n".format(fbasename + exform) + \
"Overwrite file anyway?"), "Overwrite file anyway?"),
QMessageBox.Cancel, QMessageBox.Yes | QMessageBox.No, QMessageBox.Yes | QMessageBox.No | QMessageBox.Cancel)
QMessageBox.Cancel)
# only negative answers have to be caught # only negative answers have to be caught
if ans == QMessageBox.No: if ans == QMessageBox.No:
self.saveData() self.saveData()