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@8898 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 25, 2008
1 parent 5133fc7 commit 96a66727126b9eec43c3edf0508de2e6d6478a63
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 96a6672

Please sign in to comment.