[QGIS-trac] Re: [Quantum GIS] #3354: Creating a new project with all layers from current project disabled doesn't show Save/Discard/Cancel message box.

Quantum GIS qgis at qgis.org
Mon Dec 20 20:06:07 EST 2010


#3354: Creating a new project with all layers from current project disabled
doesn't show Save/Discard/Cancel message box.
----------------------------------------+-----------------------------------
   Reporter:  JD                        |              Owner:  nobody       
       Type:  bug                       |             Status:  new          
   Priority:  minor: annoyance          |          Milestone:  Version 1.7.0
  Component:  Project Loading / Saving  |            Version:  Trunk        
   Keywords:                            |   Platform_version:               
   Platform:  Linux                     |           Must_fix:  No           
Status_info:  0                         |  
----------------------------------------+-----------------------------------

Comment(by JD):

 Fix:
 On line 5623 of app/qgisapp.cpp, replace:
 if ( askThem && ( QgsProject::instance()->isDirty() ||
 mMapCanvas->isDirty() ) && mMapCanvas->layerCount() > 0 )

 with

 if ( askThem && ( QgsProject::instance()->isDirty() ||
 mMapCanvas->isDirty() ) && QgsMapLayerRegistry::instance()->count() > 0 )

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3354#comment:1>
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