Skip to content

Commit

Permalink
Fix QVector creation
Browse files Browse the repository at this point in the history
  • Loading branch information
AxVultis committed Aug 17, 2024
1 parent 3b8cabe commit c9a36a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/WalletAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,11 @@ void WalletAdapter::depositUpdated(cn::DepositId depositId) {
}

void WalletAdapter::depositsUpdated(const std::vector<cn::DepositId>& _depositIds) {
Q_EMIT walletDepositsUpdatedSignal(QVector<cn::DepositId>(_depositIds.begin(), _depositIds.end()));
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
Q_EMIT walletDepositsUpdatedSignal(QVector<cn::DepositId>(_depositIds.begin(), _depositIds.end()));
#else
Q_EMIT walletDepositsUpdatedSignal(QVector<cn::DepositId>::fromStdVector(_depositIds));
#endif
}

void WalletAdapter::notifyAboutLastTransaction() {
Expand Down

0 comments on commit c9a36a5

Please sign in to comment.