[Bug 168583] Digikam fails to save images in home directory

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 168583] Digikam fails to save images in home directory

Gilles Caulier-4
http://bugs.kde.org/show_bug.cgi?id=168583





--- Comment #4 from Gilles Caulier <caulier gilles gmail com>  2008-08-19 12:05:48 ---
Andi,

Look in editorwindow.cpp::startingSaveAs()

    // Now do the actual saving

    // use magic file extension which tells the digikamalbums ioslave to ignore
the file

    m_savingContext->destinationURL = newURL;
    m_savingContext->originalFormat = m_canvas->currentImageFileFormat();
    m_savingContext->savingState    =
SavingContextContainer::SavingStateSaveAs;
    m_savingContext->abortingSaving = false;
    m_savingContext->saveTempFile   = new KTemporaryFile();
    m_savingContext->saveTempFile->setPrefix(newURL.directory());
    m_savingContext->saveTempFile->setSuffix(".digikamtempfile.tmp");
    m_savingContext->saveTempFile->setAutoRemove(true);
    m_savingContext->saveTempFile->open();

    m_canvas->saveAs(m_savingContext->saveTempFile->fileName(),
m_IOFileSettings,
                     m_setExifOrientationTag && (m_rotatedOrFlipped ||
m_canvas->exifRotated()),
                     m_savingContext->format.toLower());

Sound like KTemporaryFile() is not able to open a temp file into home
directory.

Gilles


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel