This commit is contained in:
2026-01-14 17:34:14 +03:00
parent 736f2392e2
commit 8d346cce31
6 changed files with 29 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ void ViewerInstructors::slot_receiveMessage(ClientMessage clientMessage)
int id_instructor = clientMessage.fromId.toInt();
mtxmapNewMsg.lock();
mapNewMsg.insert(id_instructor, true);
mapNewMsg.insert(id_instructor, mapNewMsg.value(id_instructor) + 1);
mtxmapNewMsg.unlock();
slot_NeedUpdateUI(true, false);
@@ -121,6 +121,8 @@ void ViewerInstructors::on_treeWidgetItemClicked(QTreeWidgetItem *item, int colu
item->setBackground(i, QBrush(Qt::GlobalColor::white));
}
mapNewMsg.take(newCurrentID);
item->setIcon(ColumnsTreeUsers::clmn_Messages, QIcon());
item->setText(ColumnsTreeUsers::clmn_Messages, "");
}
}
mtxmapNewMsg.unlock();