fix(emote-popup): ignore null gemometry (#5751)

This commit is contained in:
nerix
2024-12-02 16:58:46 +01:00
committed by GitHub
parent dcfb194648
commit 8faf243e3e
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -639,7 +639,11 @@ void EmotePopup::filterEmotes(const QString &searchText)
void EmotePopup::saveBounds() const
{
getApp()->getWindows()->setEmotePopupBounds(this->getBounds());
auto bounds = this->getBounds();
if (!bounds.isNull())
{
getApp()->getWindows()->setEmotePopupBounds(bounds);
}
}
void EmotePopup::resizeEvent(QResizeEvent *event)