[QGIS Commit] r15709 - trunk/qgis/python/plugins/GdalTools/tools
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Apr 15 12:55:21 EDT 2011
Author: brushtyler
Date: 2011-04-15 09:55:20 -0700 (Fri, 15 Apr 2011)
New Revision: 15709
Modified:
trunk/qgis/python/plugins/GdalTools/tools/doOverview.py
Log:
Fix #3715, don't overwrite source file
Modified: trunk/qgis/python/plugins/GdalTools/tools/doOverview.py
===================================================================
--- trunk/qgis/python/plugins/GdalTools/tools/doOverview.py 2011-04-15 15:58:35 UTC (rev 15708)
+++ trunk/qgis/python/plugins/GdalTools/tools/doOverview.py 2011-04-15 16:55:20 UTC (rev 15709)
@@ -144,6 +144,20 @@
def isBatchEnabled(self):
return self.batchCheck.isChecked()
+ def onFinished(self, exitCode, status):
+ if not self.isBatchEnabled():
+ from widgetPluginBase import GdalToolsBasePluginWidget as BasePluginWidget
+ BasePluginWidget.onFinished(self, exitCode, status)
+ return
+
+ msg = QString( self.base.process.readAllStandardError() )
+ if not msg.isEmpty():
+ self.errors.append( ">> " + self.inFiles[self.batchIndex] + "<br>" + msg.replace( "\n", "<br>" ) )
+
+ self.base.process.close()
+ self.batchIndex += 1
+ self.runItem( self.batchIndex, self.batchTotal )
+
def setProgressRange(self, maximum):
self.progressBar.setRange(0, maximum)
More information about the QGIS-commit
mailing list