bugGNU Octave - Bugs: bug #49682, File can be lost during Save As...

 
 

bug #49682: File can be lost during Save As due to conflicting dialogs

Submitter:  None
Submitted:  Wed 23 Nov 2016 01:40:02 PM UTC
   
 
Category:  GUI Severity:  2 - Minor
Priority:  3 - Low Item Group:  Other
Status:  Confirmed Assigned to:  None
Originator Name:  Giovanni Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 23 Nov 2016 07:29:03 PM UTC, comment #2: 

I  think temporarily disable the file_has_changed slot is a good idea.  Not sure what the issue is with leaving the file open in the editor just as a new file (named untitled or similar) whenever the file is externally deleted (which of course would need to be flagged as unsaved)...  Would that not solve the problem?
To me the issue is more in the "file has changed" behaviour. As Mike suggests, there could be other situations with a similar outcom

Giovanni <gdesanctis>
Wed 23 Nov 2016 05:28:25 PM UTC, comment #1: 

I can confirm this slightly confusing dialog behavior on Debian. Deleting the file in the "Save As" dialog does pop up another dialog on top asking whether the file being edited should be saved or closed. Clicking on "Close" does dismiss the dialog, as well as the "Save As" dialog, and the open tab in the editor.

This is the same dialog that appears if an open file is deleted in the "File Browser" pane, with the same behavior.

I think maybe we could temporarily disable the file_has_changed slot in the editor tab while the save_file_as action is being performed, that might help with some of the dialogs on top of dialogs going on here.

That might also have other unintended consequences if the user cancels the "Save As" for example, now the editor is left with an open file that it may think it saved but no longer exists.

OP - any suggestions about what interactions you think might make this clearer?

Mike Miller <mtmiller>
Group Member
Wed 23 Nov 2016 01:40:02 PM UTC, original submission:  

Changing name to a function open in the editor using SaveAs, had the not so brilliant idea of deleting the current file straight from the SaveAs dialog. This produced an additional dialog warning me that the file open in the editor was deleted, and asking whether I wanted to save it. Clicked on NO and this closed all the dialogs and the file was gone from the editor. No trace of it in the bin despite the fact that I used Del (not Shift+Del).

Hope this helps saving somebody else's work as I lost mine!

Cheers

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gdesanctis (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-23 mtmiller Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        StatusNone Confirmed
        Release4.0.0 dev
        SummaryFile lost during Save As File can be lost during Save As due to conflicting dialogs

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code