mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] add warning before clearing log
This commit is contained in:
parent
00616a8cbe
commit
af5a3a5d63
@ -61,8 +61,14 @@ class HistoryDialog(QDialog, Ui_DlgHistory):
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user