Version: 0.8 (using KDE 4.2.2)
Installed from: Ubuntu Packages
When saving a graph as PNG image, you can chose an existing filename and Kalgebra will overwrite it without warning. It should ask before overwriting the file as other applications do.
Indeed, according to http://lxr.kde.org/source/KDE/kdeedu/kalgebra/src/kalgebra.cpp
the function is not checking for the file being overwritten.
You should use a KFileDIalog object and call setConfirmOverwrite(true), or use the new proposed API at http://reviewboard.kde.org/r/822/
SVN commit 1206276 by apol:
Ask KFileDialog to ask the user if he _really_ wants to overwrite a file to be saved.
M +4 -4 kalgebra.cpp
WebSVN link: http://websvn.kde.org/?view=rev&revision=1206276