Skip to content

Commit 63cc61b

Browse files
author
brushtyler
committedApr 15, 2011
Fix #3715, don't overwrite source file
git-svn-id: http://svn.osgeo.org/qgis/trunk@15709 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 11bc41f commit 63cc61b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎python/plugins/GdalTools/tools/doOverview.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,20 @@ def getBatchArguments(self, inFile, outFile = None):
144144
def isBatchEnabled(self):
145145
return self.batchCheck.isChecked()
146146

147+
def onFinished(self, exitCode, status):
148+
if not self.isBatchEnabled():
149+
from widgetPluginBase import GdalToolsBasePluginWidget as BasePluginWidget
150+
BasePluginWidget.onFinished(self, exitCode, status)
151+
return
152+
153+
msg = QString( self.base.process.readAllStandardError() )
154+
if not msg.isEmpty():
155+
self.errors.append( ">> " + self.inFiles[self.batchIndex] + "<br>" + msg.replace( "\n", "<br>" ) )
156+
157+
self.base.process.close()
158+
self.batchIndex += 1
159+
self.runItem( self.batchIndex, self.batchTotal )
160+
147161
def setProgressRange(self, maximum):
148162
self.progressBar.setRange(0, maximum)
149163

0 commit comments

Comments
 (0)