Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115789
D4245.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D4245.diff
View Options
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
Details
Attached
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)
Attached To
D4245: Merge #13273: Qt/Bugfix: fix handling default wallet with no name
Event Timeline
Log In to Comment