mirror of
https://github.com/feather-wallet/feather.git
synced 2024-10-30 08:57:39 +00:00
Wallet: don't start refresh thread if status not ok
This commit is contained in:
parent
e0f7473ed4
commit
3b829ec433
2 changed files with 7 additions and 1 deletions
|
@ -1249,7 +1249,9 @@ Wallet::Wallet(Monero::Wallet *w, QObject *parent)
|
||||||
m_daemonUsername = "";
|
m_daemonUsername = "";
|
||||||
m_daemonPassword = "";
|
m_daemonPassword = "";
|
||||||
|
|
||||||
startRefreshThread();
|
if (this->status() == Status_Ok) {
|
||||||
|
startRefreshThread();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Wallet::~Wallet()
|
Wallet::~Wallet()
|
||||||
|
|
|
@ -515,6 +515,10 @@ WalletWizard *MainWindow::createWizard(WalletWizard::Page startPage){
|
||||||
auto *wizard = new WalletWizard(m_ctx, startPage, this);
|
auto *wizard = new WalletWizard(m_ctx, startPage, this);
|
||||||
connect(wizard, &WalletWizard::openWallet, m_ctx, &AppContext::onOpenWallet);
|
connect(wizard, &WalletWizard::openWallet, m_ctx, &AppContext::onOpenWallet);
|
||||||
connect(wizard, &WalletWizard::defaultWalletDirChanged, m_windowSettings, &Settings::updatePaths);
|
connect(wizard, &WalletWizard::defaultWalletDirChanged, m_windowSettings, &Settings::updatePaths);
|
||||||
|
connect(wizard, &WalletWizard::rejected, [this]{
|
||||||
|
this->cleanupBeforeClose();
|
||||||
|
QCoreApplication::quit();
|
||||||
|
});
|
||||||
return wizard;
|
return wizard;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue