Resolved the bug about crash with an empty history chat
This commit is contained in:
parent
15342f3c53
commit
ff4124d1f0
3 changed files with 24 additions and 14 deletions
|
@ -137,8 +137,12 @@ QVariant Models::MessageFeed::data(const QModelIndex& index, int role) const
|
|||
answer = path;
|
||||
}
|
||||
}
|
||||
case Attach:
|
||||
break;
|
||||
case Attach: {
|
||||
::Models::Attach att;
|
||||
|
||||
answer.setValue(att);
|
||||
}
|
||||
break;
|
||||
case Bulk: {
|
||||
FeedItem item;
|
||||
|
@ -169,6 +173,7 @@ QVariant Models::MessageFeed::data(const QModelIndex& index, int role) const
|
|||
}
|
||||
answer.setValue(item);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue