Fix removal of history entries in release builds.

Closes #56
This commit is contained in:
Florian Geyer 2013-03-24 19:50:50 +01:00
parent 26d3acb9d8
commit 13393ed2d3

View File

@ -368,7 +368,8 @@ void Entry::removeHistoryItems(QList<Entry*> historyEntries)
Q_FOREACH (Entry* entry, historyEntries) {
Q_ASSERT(!entry->parent());
Q_ASSERT(entry->uuid() == uuid());
Q_ASSERT(m_history.removeAll(entry) > 0);
int numberOfRemovedEntries = m_history.removeAll(entry);
Q_ASSERT(numberOfRemovedEntries > 0);
delete entry;
}