Browse Source

[Qt] Console: add security warning

0.14
Jonas Schnelli 8 years ago
parent
commit
ed6b377ae2
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 7
      src/qt/rpcconsole.cpp

7
src/qt/rpcconsole.cpp

@ -650,13 +650,18 @@ void RPCConsole::clear(bool clearHistory)
"td.message { font-family: %1; font-size: %2; white-space:pre-wrap; } " "td.message { font-family: %1; font-size: %2; white-space:pre-wrap; } "
"td.cmd-request { color: #006060; } " "td.cmd-request { color: #006060; } "
"td.cmd-error { color: red; } " "td.cmd-error { color: red; } "
".secwarning { color: red; }"
"b { color: #006060; } " "b { color: #006060; } "
).arg(fixedFontInfo.family(), QString("%1pt").arg(consoleFontSize)) ).arg(fixedFontInfo.family(), QString("%1pt").arg(consoleFontSize))
); );
message(CMD_REPLY, (tr("Welcome to the %1 RPC console.").arg(tr(PACKAGE_NAME)) + "<br>" + message(CMD_REPLY, (tr("Welcome to the %1 RPC console.").arg(tr(PACKAGE_NAME)) + "<br>" +
tr("Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.") + "<br>" + tr("Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.") + "<br>" +
tr("Type <b>help</b> for an overview of available commands.")), true); tr("Type <b>help</b> for an overview of available commands.")) +
"<br><span class=\"secwarning\">" +
tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramification of a command.") +
"</span>",
true);
} }
void RPCConsole::keyPressEvent(QKeyEvent *event) void RPCConsole::keyPressEvent(QKeyEvent *event)

Loading…
Cancel
Save