mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
[ui] add security warning to the python console
This commit is contained in:
parent
91dc84d2ed
commit
2aebeb0157
@ -169,8 +169,9 @@ class ShellOutputScintilla(QsciScintilla):
|
|||||||
|
|
||||||
def insertInitText(self):
|
def insertInitText(self):
|
||||||
txtInit = QCoreApplication.translate("PythonConsole",
|
txtInit = QCoreApplication.translate("PythonConsole",
|
||||||
"Python Console \n"
|
"Python Console\n"
|
||||||
"Use iface to access QGIS API interface or Type help(iface) for more info")
|
"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'
|
# some translation string for the console header ends without '\n'
|
||||||
# and the first command in console will be appended at the header text.
|
# and the first command in console will be appended at the header text.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user