Browse Source

[Qt] Hide nTxConfirmTarget behind WalletModel

0.14
Jonas Schnelli 8 years ago
parent
commit
6f0289967f
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 5
      src/qt/walletmodel.cpp
  2. 2
      src/qt/walletmodel.h

5
src/qt/walletmodel.cpp

@ -698,3 +698,8 @@ bool WalletModel::hdEnabled() const
{ {
return wallet->IsHDEnabled(); return wallet->IsHDEnabled();
} }
int WalletModel::getDefaultConfirmTarget() const
{
return nTxConfirmTarget;
}

2
src/qt/walletmodel.h

@ -207,6 +207,8 @@ public:
bool hdEnabled() const; bool hdEnabled() const;
int getDefaultConfirmTarget() const;
private: private:
CWallet *wallet; CWallet *wallet;
bool fHaveWatchOnly; bool fHaveWatchOnly;

Loading…
Cancel
Save