Version: 0.11.0-svn (using 4.2.2 (KDE 4.2.2), MinGW 3.4.5) Compiler: gcc.exe OS: Microsoft Windows (i686) release 5.1 (XP Professional) When I try to save an image in Image Editor I always get the message "Failed to overwrite original file". I have tried different files, both Save and Save As and different formats with the same result.
If your image is in your user directory, it will have read only / archive flag, and it's a stupid stuff from M$... We need to patch digiKam to ignore this flag everywhere (under win32 only of course) Do not ask me why files have this flag... I don't understand M$ policy... Gilles Caulier
I tried using a directory on another partition (FAT32) with the same result. I also noticed that the file is actually saved but has a name like xd1124.digikamtempfile.tmp1124.
I think this is related to bug 189742 (Thumbnails not saved), since Windows don't like renaming open files. The attached patch (made along the lines of the solution to bug 189742) closes the KTemporaryFile directly after it is created since it didn't work just closing it before the final rename. I suspect there is some renaming done in the saving of the image to the temporary file. The patch enables me to do Save As, but not Save and I suspect this is due to the image still being open in the editor during a Save. Now when I can save an image I realized that it is always saved as png, independently of what I choose as a name or format.
Created attachment 33528 [details] Patch to make Save As work
SVN commit 966369 by cgilles: apply patch #33528 from David Eriksson. Thanks for this patch and tests under Windows. BUG: 190296 CCMAIL: meldavid@acc.umu.se M +12 -6 editorwindow.cpp M +1 -0 savingcontextcontainer.h WebSVN link: http://websvn.kde.org/?view=rev&revision=966369
I have now got Save to work also. The new patch includes the parts I missed in for the rename of the file.
Created attachment 33560 [details] Patch to make Save work
SVN commit 966775 by cgilles: apply patch #33560 CCBUGS: 190296 M +13 -1 editorwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=966775
Thanks David for your patches. As you work under windows, do you know a solution about this entry : https://bugs.kde.org/show_bug.cgi?id=189168 Gilles Caulier