Ticket #228 (new defect)

Opened 5 years ago

Last modified 2 years ago

Gobby invites me to save changes when nobody made any changes

Reported by: Matthew Paul Thomas <mpt@…> Owned by: armin
Priority: normal Milestone:
Component: Gobby Version: 0.4.0
Severity: minor Keywords:
Cc: Launchpad Bug:

Description

Gobby 0.4.1, Ubuntu 6.10

If I subscribe to a document on an obby server, then immediately close it again, Gobby asks me if I want to "save changes". This is inappropriate, since neither I nor anyone else has made any changes.

This alert should appear only if I saved a local copy of the document.

Change History

Changed 3 years ago by armin

Gobby does not know whether the copy on your hard disk (if there is any) is up to date, which is why it is asking you. I'm not sure what the correct behaviour would be.

When subscribing to a document, in which cases the document should be marked as modified?

  • The document is not known, and it is empty
  • The document is not known, and it is non-empty
  • The document is known

The third case is rather easy. If we already know the document, we can check whether the copy on the hard disk (if present) matches the one on the server. But I'm not so sure on the first two cases.

Changed 2 years ago by anonymous

When between subscribing and unsubscribing to a document there aren't any changes made to it in the current/focused instance and no change notifications for it received from the server, the "save changes?" question shouldn't get asked, only a "save document content locally?" question (if it hasn't already been saved locally or, including a warning, if the local copy has changed). I hope to have understood the original reporter's issue correctly and to help you with this.

Note: See TracTickets for help on using tickets.