https://bugs.kde.org/show_bug.cgi?id=395296

--- Comment #1 from Theo <alpha0...@yahoo.de> ---
(In reply to Theo from comment #0)
> Would QFile[2] be a better alternative for uncompressed image
> files?

This seems to work for me. With the following I don't have to wait an
unacceptable amount of time every time I open a file from a big ISO image: I
added the lines

    else if ("model/x.stl-binary") {
        setDevice(new QFile(filename));
    }

after

    if ("inode/blockdevice" == mimetype)
        setDevice(new QFileHack(filename));

in

void KIso::prepareDevice(const QString & filename,
                         const QString & mimetype, bool forced)

in kiso.cpp. The mime type of ISO files is actually "application/x-cd-image",
but there is an unfixed bug[1] that causes them to be wrongly detected as
"model/x.stl-binary", so I used this for my test.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=99421#c15

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to