Bug 252004

Summary: Kate reports an error if you cancel when saving a new file
Product: [Applications] kate Reporter: Kenny Kruger <kenneth.j.kruger>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Image of the Unnecessary Prompt

Description Kenny Kruger 2010-09-22 05:13:37 UTC
Created attachment 51872 [details]
Image of the Unnecessary Prompt

Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

Kate v3.5.1

Kate reports, "Data you requested to be saved could not be written. Please choose how you want to proceed."  I don't believe it should do this.

 I looked around a bit for 'save' but didn't find articles that related -- hopefully not just a duplicate.

Reproducible: Always

Steps to Reproduce:
 Start Kate
 Add content (ie. "sldfkjslfkj")
 Close (I used the X titlebar button)
 At prompt click 'Save Selected'
 At new prompt (files) click 'Cancel'


 I assume it wasn't expecting to be canceled, isn't ready to handle that.


Actual Results:  
Prompted MSG
 "Data you requested to be saved could not be written. Please choose how you want to proceed."

Expected Results:  
No prompt, just return to previous question dialog box.

OS: Linux (i686) release 2.6.32-24-generic-pae
Compiler: cc
Comment 1 Joseph Wenninger 2012-10-24 15:18:59 UTC
Git commit 034d2375f8e78764a5c180a06bbe0e875288caa3 by Joseph Wenninger.
Committed on 24/10/2012 at 17:15.
Pushed by jowenn into branch 'master'.

Don't show an error if the user aborts saving of files on app exit, just return to the dialog. If saving fails, there are still some dialogs one after another, since they are from different levels, not optimal, but I don't have a plan to fix that yet

M  +3    -2    kate/app/katesavemodifieddialog.cpp

http://commits.kde.org/kate/034d2375f8e78764a5c180a06bbe0e875288caa3