Bug 287065

Summary: KSnapshot damages filename when changing it
Product: [Applications] ksnapshot Reporter: Swâmi Petaramesh <swami>
Component: generalAssignee: Richard Moore <rich>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Swâmi Petaramesh 2011-11-20 12:08:45 UTC
Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

Ksnapshot automatically proposes a filename for each new snapshot, by incrementing the previous one. It also defines the "filetype" if the filename "extension" is changed.

For jpegs, Ksnapshot proposes by default ".jpeg", (not ".jpg")

But if the previous filename was ending in ".jpg" (i.e. capture1.jpg) Ksnapshot will happily increment it for next pic to "capture2.jpg"


However at this step if the user tries to manually change the 1st part of the filaneme to something else (i.e. "someimage.jpg") then as soon as the user tries to type in the first part of the name, Ksnaphot automatically tries to change the extension back to ".jpeg" (if it was ".jpg") and does this in the middle of what the user is typing, borking the typed filename as a result.

Reproducible: Always

Steps to Reproduce:
See details above

Actual Results:  
The resulting filename is messed up while typing it because Ksnapshot tries to modify the extension (and does it in a broken manner)while the user is typing.

Expected Results:  
Ksnapshot is not expected to mess with the filename extension when not asked to ;-)
Comment 1 Christoph Feck 2011-11-20 23:27:36 UTC

*** This bug has been marked as a duplicate of bug 238101 ***