Forbid deleting the topic root.
This commit is contained in:
parent
d5ea0149e8
commit
dd3c8430bf
|
@ -838,6 +838,8 @@ bool HistoryItem::canDelete() const {
|
||||||
return false;
|
return false;
|
||||||
} else if (isService() && !isRegular()) {
|
} else if (isService() && !isRegular()) {
|
||||||
return false;
|
return false;
|
||||||
|
} else if (topicRootId() == id) {
|
||||||
|
return false;
|
||||||
} else if (!isHistoryEntry() && !isScheduled()) {
|
} else if (!isHistoryEntry() && !isScheduled()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue