Skip to content
Permalink
Browse files

[ui] add security warning to the python console

(cherry-picked from 2aebeb01)
  • Loading branch information
nirvn authored and nyalldawson committed Aug 20, 2018
1 parent f198c11 commit b437f789dc61c1fdaccd69b5795ce1c4b7bf0f73
Showing with 3 additions and 2 deletions.
  1. +3 −2 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.

0 comments on commit b437f78

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