[ui] add security warning to the python console

This commit is contained in:
nirvn 2018-08-20 13:38:54 +07:00 committed by Mathieu Pellerin
parent 91dc84d2ed
commit 2aebeb0157

View File

@ -169,8 +169,9 @@ class ShellOutputScintilla(QsciScintilla):
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.