Bug report #1182

Project 'dirty' flag not set for loading layers (and other operations)

Added by barryrowlingson - almost 15 years ago. Updated almost 14 years ago.

Assignee:Tim Sutton
Category:Project Loading/Saving
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11242


Start Qgis, load a layer (vector or raster), then do File... Exit. Qgis quits without prompting to save the project.

Various other operations don't set the project dirty flag - for example changing the symbology of a point layer. Things that do call the dirty flag are here:


Things that change the project should call: QgsProject::instance()->dirty(true)

( Python plugins should do: QgsProject.instance().dirty(True) )


#1 Updated by Tim Sutton almost 15 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed in 5133fc7e (SVN r8898), 96a66727 (SVN r8899) and .
I set the dirty flag in qgisapp whenever a layer is added (5133fc7e (SVN r8898)), removed (), and in vector and raster properties when apply() is called (96a66727 (SVN r8899)).

#2 Updated by Anonymous almost 14 years ago

Milestone Version 1.0.0 deleted

Also available in: Atom PDF