Commit 530ad93d authored by Daniel Teske's avatar Daniel Teske
Browse files

Fix clearTasks after Core::id introduction



Task-number: QTCREATORBUG-6940

Change-Id: I33040819e9eb0961866b5709fd29b1dec5592ab4
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 759fcca0
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment