Skip to content

Commit 97bec74

Browse files
committed
fix: bubble time tip display error
as title content may be display error Log: as title Pms: BUG-298109
1 parent 2ea8a4f commit 97bec74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

panels/notification/common/memoryaccessor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ qint64 MemoryAccessor::replaceEntity(qint64 id, const NotifyEntity &entity)
3232
const auto index = (iter - m_entities.begin());
3333
Q_ASSERT(index >= 0);
3434
m_entities[index] = entity;
35+
} else {
36+
return -1;
3537
}
3638

3739
return id;

0 commit comments

Comments
 (0)