Skip to content
Snippets Groups Projects
Commit 009a3902 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Adrien Béraud
Browse files

emojipicker: use truthy check to avoid exception

Change-Id: I9c6acd8fe1c34d4ce5b2a172e04eea0f4a1e0148
parent 32b76c8d
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,7 @@ Rectangle { ...@@ -174,7 +174,7 @@ Rectangle {
sendButtonVisibility: text || messageBar.fileContainer.filesToSendCount sendButtonVisibility: text || messageBar.fileContainer.filesToSendCount
onEmojiButtonClicked: { onEmojiButtonClicked: {
if (emojiPicker !== null && emojiPicker.opened) { if (emojiPicker && emojiPicker.opened) {
emojiPicker.closeEmojiPicker(); emojiPicker.closeEmojiPicker();
} else { } else {
openEmojiPicker(); openEmojiPicker();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment