oops. didn't test what I thought I did

This commit is contained in:
howard-stearns 2017-08-09 12:09:03 -07:00
parent 1cf81495ab
commit 7414bf0d9a
3 changed files with 3 additions and 3 deletions

View file

@ -131,6 +131,6 @@
{ "from": "Keyboard.Space", "to": "Actions.SHIFT" },
{ "from": "Keyboard.R", "to": "Actions.ACTION1" },
{ "from": "Keyboard.T", "to": "Actions.ACTION2" },
{ "from": "Keyboard.Tab", "to": "Actions.ContextMenu" }
{ "from": "Keyboard.RightMouseClicked", "to": "Actions.ContextMenu" }
]
}

View file

@ -36,7 +36,7 @@ bool Ledger::buy(const QString& hfc_key, int cost, const QString& asset_id, cons
return true; // FIXME send to server.
}
bool receiveAt(const QString& hfc_key) {
bool Ledger::receiveAt(const QString& hfc_key) {
auto accountManager = DependencyManager::get<AccountManager>();
if (!accountManager->isLoggedIn()) {
qCWarning(commerce) << "Cannot set receiveAt when not logged in.";

View file

@ -21,7 +21,7 @@ bool QmlCommerce::buy(const QString& assetId, int cost, const QString& buyerUser
auto ledger = DependencyManager::get<Ledger>();
auto wallet = DependencyManager::get<Wallet>();
QStringList keys = wallet->listPublicKeys();
if (keys.count == 0) {
if (keys.count() == 0) {
return false;
}
QString key = keys[0];