[QGIS Commit] r8898 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Jul 25 07:49:01 EDT 2008


Author: timlinux
Date: 2008-07-25 07:49:00 -0400 (Fri, 25 Jul 2008)
New Revision: 8898

Modified:
   trunk/qgis/src/app/qgsrasterlayerproperties.cpp
   trunk/qgis/src/app/qgsvectorlayerproperties.cpp
Log:
Complete fix for ticket #1182 - Mark project as dirty when modifying layer properties.

Modified: trunk/qgis/src/app/qgsrasterlayerproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2008-07-25 11:35:37 UTC (rev 8897)
+++ trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2008-07-25 11:49:00 UTC (rev 8898)
@@ -1558,6 +1558,8 @@
     cboxContrastEnhancementAlgorithm->removeItem(cboxContrastEnhancementAlgorithm->findText(tr("User Defined")));
   }
 
+  // notify the project we've made a change
+  QgsProject::instance()->dirty(true);
 }//apply
 
 void QgsRasterLayerProperties::on_buttonBox_helpRequested()

Modified: trunk/qgis/src/app/qgsvectorlayerproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsvectorlayerproperties.cpp	2008-07-25 11:35:37 UTC (rev 8897)
+++ trunk/qgis/src/app/qgsvectorlayerproperties.cpp	2008-07-25 11:49:00 UTC (rev 8898)
@@ -29,6 +29,7 @@
 #include "qgslabel.h"
 #include "qgslayerprojectionselector.h"
 #include "qgslogger.h"
+#include "qgsproject.h"
 #include "qgssinglesymboldialog.h"
 #include "qgsuniquevaluedialog.h"
 #include "qgsvectordataprovider.h"
@@ -341,6 +342,8 @@
   emit refreshLegend(layer->getLayerID(), false);
 
   layer->triggerRepaint();
+  // notify the project we've made a change
+  QgsProject::instance()->dirty(true);
 
 }
 



More information about the QGIS-commit mailing list