Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | bool WalletModel::changePassphrase(const SecureString &oldPass, | ||||
// Make sure wallet is locked before attempting pass change | // Make sure wallet is locked before attempting pass change | ||||
m_wallet->lock(); | m_wallet->lock(); | ||||
return m_wallet->changeWalletPassphrase(oldPass, newPass); | return m_wallet->changeWalletPassphrase(oldPass, newPass); | ||||
} | } | ||||
// Handlers for core signals | // Handlers for core signals | ||||
static void NotifyUnload(WalletModel *walletModel) { | static void NotifyUnload(WalletModel *walletModel) { | ||||
qDebug() << "NotifyUnload"; | qDebug() << "NotifyUnload"; | ||||
QMetaObject::invokeMethod(walletModel, "unload", Qt::QueuedConnection); | QMetaObject::invokeMethod(walletModel, "unload"); | ||||
} | } | ||||
static void NotifyKeyStoreStatusChanged(WalletModel *walletmodel) { | static void NotifyKeyStoreStatusChanged(WalletModel *walletmodel) { | ||||
qDebug() << "NotifyKeyStoreStatusChanged"; | qDebug() << "NotifyKeyStoreStatusChanged"; | ||||
QMetaObject::invokeMethod(walletmodel, "updateStatus", | QMetaObject::invokeMethod(walletmodel, "updateStatus", | ||||
Qt::QueuedConnection); | Qt::QueuedConnection); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |