From 13393ed2d350701fdd6c4b595a367c8178a61d77 Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Sun, 24 Mar 2013 19:50:50 +0100 Subject: [PATCH] Fix removal of history entries in release builds. Closes #56 --- src/core/Entry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index b2c1206a..c8b6c079 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -368,7 +368,8 @@ void Entry::removeHistoryItems(QList 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; }