[QGIS-trac] [Quantum GIS] #1182: Project 'dirty' flag not set for loading layers (and other operations)

Quantum GIS qgis at qgis.org
Fri Jul 25 05:59:01 EDT 2008


#1182: Project 'dirty' flag not set for loading layers (and other operations)
---------------------------------------------------------+------------------
   Reporter:  barryrowlingson                            |              Owner:  timlinux     
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.0.0
  Component:  Project Loading / Saving                   |            Version:  0.11.0       
   Keywords:                                             |   Platform_version:               
   Platform:  All                                        |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 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:

 http://doc.qgis.org/classQgsProject.html#1fa4118ae850dbdb920f8805c24bbc1a

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

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

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1182>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list