Attempt to fix a strange crash on Linux.

This commit is contained in:
John Preston 2018-06-01 19:34:44 +03:00
parent b198c9b975
commit 2878e46d2b
2 changed files with 8 additions and 0 deletions

View File

@ -1564,3 +1564,9 @@ void PeerListContent::handleNameChanged(const Notify::PeerUpdate &update) {
}
}
}
PeerListContent::~PeerListContent() {
if (_contextMenu) {
_contextMenu->setDestroyedCallback(nullptr);
}
}

View File

@ -484,6 +484,8 @@ public:
return _scrollToRequests.events();
}
~PeerListContent();
protected:
int resizeGetHeight(int newWidth) override;
void visibleTopBottomUpdated(