Skip to content
Permalink
Browse files

[fTools] enable OK button when error occurs (fix #13104)

  • Loading branch information
alexbruy committed Jan 13, 2016
1 parent 14c858a commit 3d44e1f5454796bd49189e0319dce65b32c631ca
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/fTools/tools/doSimplify.py
@@ -103,6 +103,7 @@ def accept(self):
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 @@ def accept(self):
"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(),

0 comments on commit 3d44e1f

Please sign in to comment.
You can’t perform that action at this time.