diff --git a/python/plugins/GdalTools/tools/doOverview.py b/python/plugins/GdalTools/tools/doOverview.py
index 17c0ce942fe0..44e73a9def2f 100644
--- a/python/plugins/GdalTools/tools/doOverview.py
+++ b/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] + "
" + msg.replace( "\n", "
" ) )
+
+ self.base.process.close()
+ self.batchIndex += 1
+ self.runItem( self.batchIndex, self.batchTotal )
+
def setProgressRange(self, maximum):
self.progressBar.setRange(0, maximum)