forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user