aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2016-11-16 10:56:32 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2016-12-29 11:43:29 +0000
commite2d9213c32e51fe197756709e24c6694f28bf842 (patch)
tree24a4bedc19ccf827689099b27d3449bef6658935 /src/qt/rpcconsole.h
parent1755c04576eb42467ba16af9f2658e12b707b7d0 (diff)
Qt/RPCConsole: Make it possible to parse a command without executing it
Diffstat (limited to 'src/qt/rpcconsole.h')
-rw-r--r--src/qt/rpcconsole.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h
index e1698711da..9567341ae2 100644
--- a/src/qt/rpcconsole.h
+++ b/src/qt/rpcconsole.h
@@ -36,7 +36,10 @@ public:
explicit RPCConsole(const PlatformStyle *platformStyle, QWidget *parent);
~RPCConsole();
- static bool RPCExecuteCommandLine(std::string &strResult, const std::string &strCommand);
+ static bool RPCParseCommandLine(std::string &strResult, const std::string &strCommand, bool fExecute);
+ static bool RPCExecuteCommandLine(std::string &strResult, const std::string &strCommand) {
+ return RPCParseCommandLine(strResult, strCommand, true);
+ }
void setClientModel(ClientModel *model);