fix crash
This commit is contained in:
@@ -57,6 +57,9 @@ MessageEventModel::MessageEventModel(QObject *parent)
|
|||||||
qmlRegisterUncreatableType<EventStatus>("org.kde.neochat", 1, 0, "EventStatus", "EventStatus is not an creatable type");
|
qmlRegisterUncreatableType<EventStatus>("org.kde.neochat", 1, 0, "EventStatus", "EventStatus is not an creatable type");
|
||||||
|
|
||||||
QTimer::singleShot(0, this, [=]() {
|
QTimer::singleShot(0, this, [=]() {
|
||||||
|
if (!m_currentRoom) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_currentRoom->getPreviousContent(50);
|
m_currentRoom->getPreviousContent(50);
|
||||||
connect(this, &QAbstractListModel::rowsInserted, this, [=](){
|
connect(this, &QAbstractListModel::rowsInserted, this, [=](){
|
||||||
if(m_currentRoom->readMarkerEventId().isEmpty()) {
|
if(m_currentRoom->readMarkerEventId().isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user