Skip to content
Permalink
Browse files

[processing] add warning before clearing log

  • Loading branch information
alexbruy committed Oct 18, 2013
1 parent 00616a8 commit af5a3a5d6352f9892f884f175b5310ba5ca5a750
Showing with 8 additions and 2 deletions.
  1. +8 −2 python/plugins/processing/gui/HistoryDialog.py
@@ -61,8 +61,14 @@ def __init__(self):
self.fillTree()

def clearLog(self):
ProcessingLog.clearLog()
self.fillTree()
reply = QMessageBox.question(self,
self.tr('Confirmation'),
self.tr('Are you sure you want to clear log?'),
QMessageBox.Yes | QMessageBox.No,
QMessageBox.No)
if reply == QMessageBox.Yes:
ProcessingLog.clearLog()
self.fillTree()

def fillTree(self):
self.tree.clear()

0 comments on commit af5a3a5

Please sign in to comment.
You can’t perform that action at this time.