Tasks: Remove other uses of Id::uniqueIdentifier()

Ids can be compared and tested for default-constructedness without.

Change-Id: I410c8a3922faa32fa27a090ea8fba7562a9a0231
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
hjk
2015-06-23 13:15:17 +02:00
parent b646c37f0e
commit 1c119185d0
2 changed files with 5 additions and 5 deletions

View File

@@ -384,7 +384,7 @@ void TaskWindow::clearTasks(Core::Id categoryId)
void TaskWindow::setCategoryVisibility(Core::Id categoryId, bool visible)
{
if (categoryId.uniqueIdentifier() == 0)
if (!categoryId.isValid())
return;
QList<Core::Id> categories = d->m_filter->filteredCategories();