Skip to content
  • Clarence Dang's avatar
    Improve stability of opening, saving and preview saving (for theoretically executable code paths): · 9617acbd
    Clarence Dang authored
    * Don't crash if KImageIO::typeForMime() returns an empty list
      [BTW, that method should be renamed to KImageIO::type___s___ForMime()]
    
    * kpDocument::getPixmapFile()
      - Don't crash on null KMimeType::Ptr deref
      - Use KMimeType::findByUrl(), instead of findByFileContent(), to mimick the
        KolourPaint/KDE3 behavior (note that KDE3's call to findByUrl() actually passed the
        temp file, not the URL, which is a bit bogus since there's no gaurantee
        that the temp file would have the same extension)
    
    * kpDocumentSaveOptionsWidget::updatePreview()
      - Ignore any failed saves (we don't backport to KDE3 since the bug is
        harmless since the failed saving will be discovered as soon as the user
        presses the final OK button in KFileDialog)
    
    
    svn path=/trunk/KDE/kdegraphics/kolourpaint/; revision=723632
    9617acbd