Bugfix: Wrong use of MessageBox.question.
This commit is contained in:
parent
41ca6114b1
commit
a3d3c02773
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user