Fix crash from logging unset indices (leftover after debugging)
This commit is contained in:
parent
7ff7e33d4a
commit
c9393fe3f6
@ -753,11 +753,6 @@ TimelineModel::setCurrentIndex(int index)
|
|||||||
(!oldReadIndex || *oldReadIndex < nextEventIndexAndId->first)) {
|
(!oldReadIndex || *oldReadIndex < nextEventIndexAndId->first)) {
|
||||||
readEvent(nextEventIndexAndId->second);
|
readEvent(nextEventIndexAndId->second);
|
||||||
currentReadId = QString::fromStdString(nextEventIndexAndId->second);
|
currentReadId = QString::fromStdString(nextEventIndexAndId->second);
|
||||||
|
|
||||||
nhlog::net()->info("Marked as read {}, index {}, oldReadIndex {}",
|
|
||||||
nextEventIndexAndId->second,
|
|
||||||
nextEventIndexAndId->first,
|
|
||||||
*oldReadIndex);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user