Fix TagModel ignoring tags without parent due to mismatch in ID of invalid…

Authored by Dan Vrátil <dvratil@redhat.com>.

Description

Fix TagModel ignoring tags without parent due to mismatch in ID of invalid parent

By default invalid Tag has ID -1, the TagModel was expecting 0, so Tags that had
invalid parent were never attached to the root Tag and so the model was never
correctly populated (how come nobody noticed this?)

Discovered by Sergio and confirmed by TagModelTest.

Details

Committed
Dan Vrátil <dvratil@redhat.com>Sep 2 2015, 10:19 PM
Parents
R41:aa3b25e5270f: Fix Tag::setParent() not allowing to reset parent to empty
Branches
Unknown
Tags
Unknown
Dan Vrátil <dvratil@redhat.com> committed R41:5344b40b2cfa: Fix TagModel ignoring tags without parent due to mismatch in ID of invalid… (authored by Dan Vrátil <dvratil@redhat.com>).Sep 2 2015, 10:19 PM