From 2aebeb0157ae8abec14b8263a97871f678ffc0ac Mon Sep 17 00:00:00 2001 From: nirvn Date: Mon, 20 Aug 2018 13:38:54 +0700 Subject: [PATCH] [ui] add security warning to the python console --- python/console/console_output.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/console/console_output.py b/python/console/console_output.py index 3cf69b3fa6a1..ee245a531eec 100644 --- a/python/console/console_output.py +++ b/python/console/console_output.py @@ -169,8 +169,9 @@ def __init__(self, parent=None): def insertInitText(self): txtInit = QCoreApplication.translate("PythonConsole", - "Python Console \n" - "Use iface to access QGIS API interface or Type help(iface) for more info") + "Python Console\n" + "Use iface to access QGIS API interface or Type help(iface) for more info\n" + "Security warning: typing commands from an untrusted source can lead to data loss and/or leak") # some translation string for the console header ends without '\n' # and the first command in console will be appended at the header text.