Bug report #13887

Project not considered dirty when it has no layers

Added by Sebastian Dietrich over 4 years ago. Updated about 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Project Loading/Saving
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:21909

Description

When a project has no layers in it, it is never considered dirty, e.g. the user is not asked to save the changes when exiting QGIS.

History

#1 Updated by Sebastian Dietrich over 4 years ago

To reproduce:
  • Create a new project
  • Edit some project attributes, e.g. the title, a project variable, a default marker, ...
  • Exit QGIS

You are not asked whether you want to save the changes.

#2 Updated by Sebastian Dietrich over 4 years ago

To reproduce in a weird way:
  • Load a project with some layers
  • Delete all layers
  • Exit QGIS

You are not asked whether you want to save the changes.

#3 Updated by Sebastian Dietrich about 4 years ago

  • % Done changed from 0 to 50
  • Assignee set to Sebastian Dietrich
  • Target version set to Future Release - Nice to have

#4 Updated by Sebastian Dietrich about 4 years ago

  • Target version deleted (Future Release - Nice to have)
  • % Done changed from 50 to 0
  • Assignee deleted (Sebastian Dietrich)

#5 Updated by Giovanni Manghi almost 4 years ago

  • Crashes QGIS or corrupts data changed from Yes to No

#6 Updated by Giovanni Manghi almost 3 years ago

  • Regression? set to No
  • Easy fix? set to No

#7 Updated by Giovanni Manghi about 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF