Page MenuHomePhabricator

D4245.diff
No OneTemporary

D4245.diff

diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -337,7 +337,7 @@
std::string uri;
#ifdef ENABLE_WALLET
- if (walletID && !walletID->empty()) {
+ if (walletID) {
QByteArray encodedName =
QUrl::toPercentEncoding(
QString::fromStdString(*walletID));
@@ -484,7 +484,8 @@
}
std::string wallet_id = walletID.toStdString();
if (!RPCConsole::RPCExecuteCommandLine(
- m_node, result, executableCommand, nullptr, &wallet_id)) {
+ m_node, result, executableCommand, nullptr,
+ walletID.isNull() ? nullptr : &wallet_id)) {
Q_EMIT reply(RPCConsole::CMD_ERROR,
QString("Parse error: unbalanced ' or \""));
return;
@@ -1051,7 +1052,7 @@
}
if (m_last_wallet_id != walletID) {
- if (walletID.isEmpty()) {
+ if (walletID.isNull()) {
message(CMD_REQUEST,
tr("Executing command without any wallet"));
} else {

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 12:05 (41 m, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187769
Default Alt Text
D4245.diff (1 KB)

Event Timeline