Skip to content

Commit

Permalink
Fix crash when early closing receive dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
borgbyte committed Mar 16, 2020
1 parent 14ec34a commit d354e95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ ReceiveAddress::ReceiveAddress(QObject *parent) : QObject(parent)

}

ReceiveAddress::~ReceiveAddress()
{
QMetaObject::invokeMethod(m_account->m_wallet->m_context, [] {}, Qt::BlockingQueuedConnection);
}

Account *ReceiveAddress::account() const
{
return m_account;
Expand Down
1 change: 1 addition & 0 deletions src/account.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class ReceiveAddress : public QObject

public:
explicit ReceiveAddress(QObject* parent = nullptr);
virtual ~ReceiveAddress();

Account* account() const;
void setAccount(Account* account);
Expand Down

0 comments on commit d354e95

Please sign in to comment.