Skip to content

Commit c2ac37d

Browse files
committed
listWalletDir() now returns vector of std::pair
bitcoin-core/gui#824
1 parent 08f97b8 commit c2ac37d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qml/models/walletlistmodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ void WalletListModel::listWalletDir()
2323
existing_names.insert(name);
2424
}
2525

26-
for (const std::string &name : m_node.walletLoader().listWalletDir()) {
27-
QString qname = QString::fromStdString(name);
26+
for (const auto& [path, info] : m_node.walletLoader().listWalletDir()) {
27+
QString qname = QString::fromStdString(path);
2828
if (!existing_names.contains(qname)) {
2929
addItem({ qname });
3030
}

0 commit comments

Comments
 (0)