Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] add warning before clearing log
  • Loading branch information
alexbruy committed Oct 18, 2013
1 parent 00616a8 commit af5a3a5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -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()
Expand Down

0 comments on commit af5a3a5

Please sign in to comment.