Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 50ec079
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/plugins/GdalTools/tools/doOverview.py
Expand Up @@ -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)

Expand Down

0 comments on commit 50ec079

Please sign in to comment.