mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[fTools] enable OK button when error occurs (fix #13104)
This commit is contained in:
parent
14c858a0b1
commit
3d44e1f545
@ -103,6 +103,7 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
if not QgsVectorFileWriter.deleteShapeFile(outFileName):
|
||||
QMessageBox.warning(self, self.tr("Delete error"),
|
||||
self.tr("Can't delete file %s") % (outFileName))
|
||||
self.btnOk.setEnabled(False)
|
||||
return
|
||||
|
||||
self.workThread = GeomThread(self.myFunction, vLayer, self.chkUseSelection.isChecked(),
|
||||
@ -115,6 +116,7 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
"attribute tables are closed. Continue?"),
|
||||
QMessageBox.Yes | QMessageBox.No)
|
||||
if res == QMessageBox.No:
|
||||
self.btnOk.setEnabled(False)
|
||||
return
|
||||
|
||||
self.workThread = GeomThread(self.myFunction, vLayer, self.chkUseSelection.isChecked(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user