Opened 16 years ago

Closed 14 years ago

Last modified 14 years ago

#963 closed bug (fixed)

The project Save? dialog does not appear when expected.

Reported by: smizuno Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Project Loading / Saving Version: Trunk
Keywords: save dialog Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

A project with layers loaded sometimes doesn't get the Save dialog on closing QGIS/new file/open file actions

The Ask to save project changes... option is enabled.

One sequence of steps that does cause the Save? dialog to appear:

  1. with any project (file or new) click one of the Zoom buttons (don't need to actually do any zooming - it is the button click action setting a "dirty" flag.)
  2. close QGIS

Most other actions on the project, like adding a layer, don't cause the Save? dialog to appear.

This occurs in HEAD and back to 0.9.0, and on Windows and Linux.

When I noticed this I decided to write down exactly what I was expecting so I could test each scenario more intelligently than just randomly clicking buttons and such.

I poked around in the Developers area of the wiki and couldn't find anything outlining expected behavior on this topic. Perhaps I am looking in the wrong place. The user manual doesn't really address this, just a mention of the Ask to save project changes option.

So, I have attached my list of expectations for the Save? dialog to appear (or not) Comments?

Attachments (1)

QGIS-expected behavior - Save dialog.txt (2.9 KB ) - added by smizuno 16 years ago.
expectations for the Save? dialog to appear

Download all attachments as: .zip

Change History (9)

by smizuno, 16 years ago

expectations for the Save? dialog to appear

comment:1 by pcav, 16 years ago

Milestone: Version 0.9.2

comment:2 by pcav, 15 years ago

I confirm: if I remove a layer from a project, I can close QGIS without a question

comment:3 by trapanator, 15 years ago

I cannot reproduce it:

1) new project 2) add a shapefile 3) zoom

closing QGIS asks me if I want to save...

comment:4 by pcav, 15 years ago

I can confirm the defect: if you add a layer to an existing project, you are not asked to save it when closing.

comment:5 by lutra, 14 years ago

Milestone: Version 1.0.3Version 1.4.0
Type: defectbug

Tested now on r12279: adding a layer now seems to work. If you try close qgis it ask you if you want to save the changes.

Removing a layer still doesn't work as expected: you can remove a layer from a just saved project and then close qgis. No question will pop up asking to save the project.

comment:7 by jef, 14 years ago

Resolution: fixed
Status: newclosed

fixed in r12926. maybe just partly. issues from #2431 are covered. if there are any other actions that modify the project so that it should be save, please name them (like in #2341).

comment:8 by dr, 14 years ago

If move disabled layer in TOC to new place then The project Save? dialog does not appear.

Note: See TracTickets for help on using tickets.