Skip to content

Commit

Permalink
Complete fix for ticket #1182 - Mark project as dirty when modifying …
Browse files Browse the repository at this point in the history
…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 02fad2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsrasterlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions src/app/qgsvectorlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);

}

Expand Down

0 comments on commit 02fad2b

Please sign in to comment.