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

--- Comment #10 from Sebastian Sauer <[email protected]> ---
I think the reason could be that the temporary file is still open. Windows
cannot rename files that are opened at least afaik. The problem is that
KTemporaryFile/QTemporaryFile::close() does *NOT* close the
file/file-descriptor;

bool QTemporaryFileEngine::close()
{
    // Don't close the file, just seek to the front.
    seek(0);
    setError(QFile::UnspecifiedError, QString());
    return true;
}

What means that the temporary file will stay open as long as it's used making
it impossible to rename it during it's lifetime and when it's actually closed
it#s to late cause it's autoRemove'd means deleted :-/

Does that make sense?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Kde-windows mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-windows

Reply via email to