Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/qt/overviewpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void OverviewPage::setBalance(
ui->labelUnconfirmedPrivate->setText(BitcoinUnits::formatWithUnit(unit, unconfirmedPrivateBalance, false, BitcoinUnits::separatorAlways));
ui->labelAnonymizable->setText(BitcoinUnits::formatWithUnit(unit, anonymizableBalance, false, BitcoinUnits::separatorAlways));

ui->anonymizeButton->setEnabled(spark::IsSparkAllowed() && anonymizableBalance > 0);
ui->anonymizeButton->setEnabled(walletModel->getWallet()->sparkWallet && spark::IsSparkAllowed() && anonymizableBalance > 0);

// only show immature (newly mined) balance if it's non-zero, so as not to complicate things
// for the non-mining users
Expand Down
2 changes: 1 addition & 1 deletion src/qt/walletview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void WalletView::requestedSyncWarningInfo()
void WalletView::showAutomintSparkNotification()
{
auto sparkModel = walletModel->getSparkModel();
if (!sparkModel) {
if (!sparkModel || !walletModel->getWallet()->sparkWallet) {
return;
}

Expand Down
Loading