Fix loading of images with selection masks. Selections masks call KisMask::selection() in setVisibile, which asserts if there initSelection() hasn't been called yet. But we cannot call initSelection at this stage of loading because we're only creating the node hierarchy, not the binary content yet. So, add a flag "loading" that inhibits that call & all signal emissions.
Showing with 20 additions and 13 deletions