Bug 197135

Summary: Saving graphs overwrite file without warning
Product: [Applications] kalgebra Reporter: Adrien Cordonnier <adrien.cordonnier>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Adrien Cordonnier 2009-06-19 12:52:38 UTC
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.
Comment 1 Dario Andres 2009-06-24 20:43:27 UTC
Indeed, according to http://lxr.kde.org/source/KDE/kdeedu/kalgebra/src/kalgebra.cpp
the function is not checking for the file being overwritten.

To developers:
You should use a KFileDIalog object and call setConfirmOverwrite(true), or use the new proposed API at http://reviewboard.kde.org/r/822/

Thanks
Comment 2 Aleix Pol 2010-12-14 05:21:16 UTC
SVN commit 1206276 by apol:

Ask KFileDialog to ask the user if he _really_ wants to overwrite a file to be saved.

BUG: 197135


 M  +4 -4      kalgebra.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1206276