Fix clearTasks after Core::id introduction

Task-number: QTCREATORBUG-6940

Change-Id: I33040819e9eb0961866b5709fd29b1dec5592ab4
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2012-02-13 13:23:21 +01:00
parent 759fcca041
commit 530ad93d18

View File

@@ -143,7 +143,7 @@ void TaskModel::removeTask(const Task &task)
void TaskModel::clearTasks(const Core::Id &categoryId)
{
if (categoryId.uniqueIdentifier() != 0) {
if (categoryId.uniqueIdentifier() == 0) {
if (m_tasks.count() == 0)
return;
beginRemoveRows(QModelIndex(), 0, m_tasks.count() -1);