Skip to content

Commit

Permalink
[ui] add security warning to the python console
Browse files Browse the repository at this point in the history
(cherry-picked from 2aebeb0)
  • Loading branch information
nirvn authored and nyalldawson committed Aug 21, 2018
1 parent f198c11 commit b437f78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/console/console_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b437f78

Please sign in to comment.