diff options
| -rw-r--r-- | Swift/QtUI/QtEmojisScroll.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/QtUI/QtEmojisScroll.cpp b/Swift/QtUI/QtEmojisScroll.cpp index 27963a1..2c347bb 100644 --- a/Swift/QtUI/QtEmojisScroll.cpp +++ b/Swift/QtUI/QtEmojisScroll.cpp @@ -24,6 +24,9 @@ namespace Swift {          this->setLayout(new QVBoxLayout);          this->layout()->addWidget(scrollArea);          this->layout()->setContentsMargins(0,0,0,0); -        setMinimumHeight(emojiLayout->itemAt(0)->minimumSize().height() * 8); + +        if (emojiLayout->itemAt(0)) { +            setMinimumHeight(emojiLayout->itemAt(0)->minimumSize().height() * 8); +        }      }  }  | 
 Swift