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

Submitted by:  None
Submitted on:  Wed 23 Nov 2016 01:40:02 PM UTC  
 
Category: GUISeverity: 2 - Minor
Priority: 3 - LowItem Group: Other
Status: ConfirmedAssigned to: None
Originator Name: GiovanniOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Nov 2016 05:28:25 PM UTCmtmillerSeverity3 - 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.1-cleanup1