Skip to content
  • Agata Cacko's avatar
    Don't leave incorrect resource files after loading · 0ef02e5e
    Agata Cacko authored
    Before this commit, KisFolderStorage wouldn't check if the
    resource can be loaded after importing, so it didn't even know
    that maybe it imported an incorrect file which is later
    staying in the resource folder unnecessarily.
    This commit adds checking for whether the resource can be loaded
    immediately after copying it to the folder, and then removes it
    if the resource file is incorrect.
    
    BUG:446279
    (cherry picked from commit c76519a7)
    0ef02e5e