Skip to content

Commit 3d44e1f

Browse files
committedJan 13, 2016
[fTools] enable OK button when error occurs (fix #13104)
1 parent 14c858a commit 3d44e1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎python/plugins/fTools/tools/doSimplify.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def accept(self):
103103
if not QgsVectorFileWriter.deleteShapeFile(outFileName):
104104
QMessageBox.warning(self, self.tr("Delete error"),
105105
self.tr("Can't delete file %s") % (outFileName))
106+
self.btnOk.setEnabled(False)
106107
return
107108

108109
self.workThread = GeomThread(self.myFunction, vLayer, self.chkUseSelection.isChecked(),
@@ -115,6 +116,7 @@ def accept(self):
115116
"attribute tables are closed. Continue?"),
116117
QMessageBox.Yes | QMessageBox.No)
117118
if res == QMessageBox.No:
119+
self.btnOk.setEnabled(False)
118120
return
119121

120122
self.workThread = GeomThread(self.myFunction, vLayer, self.chkUseSelection.isChecked(),

0 commit comments

Comments
 (0)
Please sign in to comment.