mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-09 19:39:00 +08:00
cabana: dont reset filter after seek (#27290)
old-commit-hash: 237428d0fd42bd0d00156029b38afced3222280e
This commit is contained in:
@@ -182,11 +182,10 @@ void MessageListModel::sortMessages() {
|
||||
|
||||
void MessageListModel::msgsReceived(const QHash<QString, CanData> *new_msgs) {
|
||||
int prev_row_count = msgs.size();
|
||||
bool update_all = new_msgs->size() == can->can_msgs.size();
|
||||
if (update_all || (filter_str.isEmpty() && msgs.size() != can->can_msgs.size())) {
|
||||
if (filter_str.isEmpty() && msgs.size() != can->can_msgs.size()) {
|
||||
msgs = can->can_msgs.keys();
|
||||
}
|
||||
if (update_all || msgs.size() != prev_row_count) {
|
||||
if (msgs.size() != prev_row_count) {
|
||||
sortMessages();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user