Skip to content
Permalink
Browse files
Fix #3715, don't overwrite source file
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15709 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Apr 15, 2011
1 parent 91db158 commit 50ec07953461dd2889f3363298db21b5384fb5da
Showing with 14 additions and 0 deletions.
  1. +14 −0 python/plugins/GdalTools/tools/doOverview.py
@@ -144,6 +144,20 @@ def getBatchArguments(self, inFile, outFile = None):
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)

0 comments on commit 50ec079

Please sign in to comment.