Skip to content
Permalink
Browse files
Complete fix for ticket #1182 - Mark project as dirty when modifying …
…layer properties.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8898 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 25, 2008
1 parent 6dab7e7 commit 02fad2b1bc3e847875bd10437ea8a96846f8b5ab
Showing with 5 additions and 0 deletions.
  1. +2 −0 src/app/qgsrasterlayerproperties.cpp
  2. +3 −0 src/app/qgsvectorlayerproperties.cpp
@@ -1558,6 +1558,8 @@ void QgsRasterLayerProperties::apply()
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()
@@ -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 @@ void QgsVectorLayerProperties::apply()
emit refreshLegend(layer->getLayerID(), false);

layer->triggerRepaint();
// notify the project we've made a change
QgsProject::instance()->dirty(true);

}

0 comments on commit 02fad2b

Please sign in to comment.