Fix image delegate color && fix lastEvent.

This commit is contained in:
Black Hat
2018-09-03 09:56:21 +08:00
parent 104e194cfb
commit 0301590b44
3 changed files with 3 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ Item {
Layout.fillWidth: true
Layout.fillHeight: true
text: (lastEvent || topic).replace(/(\r\n\t|\n|\r\t)/gm,"");
text: (lastEvent == "" ? topic : lastEvent).replace(/(\r\n\t|\n|\r\t)/gm,"");
elide: Text.ElideRight
wrapMode: Text.NoWrap
}