Make opening threads from a usercard opened with /usercard not crash the client (#3905)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2022-11-05 13:40:15 +01:00
committed by GitHub
parent 2ec26f57cc
commit 6f88c1cc8a
3 changed files with 44 additions and 2 deletions
+2
View File
@@ -135,6 +135,8 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
: DraggablePopup(closeAutomatically, parent)
, split_(split)
{
assert(split != nullptr &&
"split being nullptr causes lots of bugs down the road");
this->setWindowTitle("Usercard");
this->setStayInScreenRect(true);