Skip to content
Permalink
Browse files

raster layer properties: resync renderer settings after loading qml (f…

…ixes #10565)
  • Loading branch information
jef-n committed Jun 14, 2014
1 parent d7c0e9d commit d8b54c41cff02cb5e0eba32f4d010896fdb43b7b
Showing with 3 additions and 9 deletions.
  1. +3 −9 src/app/qgsrasterlayerproperties.cpp
@@ -1598,8 +1598,8 @@ void QgsRasterLayerProperties::on_pbnLoadDefaultStyle_clicked()
{
setRendererWidget( renderer->type() );
}
sync();
mRasterLayer->triggerRepaint();
populateTransparencyTable( mRasterLayer->renderer() );
}
else
{
@@ -1659,8 +1659,8 @@ void QgsRasterLayerProperties::on_pbnLoadStyle_clicked()
{
setRendererWidget( renderer->type() );
}
sync();
mRasterLayer->triggerRepaint();
populateTransparencyTable( mRasterLayer->renderer() );
}
else
{
@@ -1691,15 +1691,9 @@ void QgsRasterLayerProperties::on_pbnSaveStyleAs_clicked()
bool defaultLoadedFlag = false;
QString message = mRasterLayer->saveNamedStyle( outputFileName, defaultLoadedFlag );
if ( defaultLoadedFlag )
{
sync();
}
settings.setValue( "style/lastStyleDir", QFileInfo( outputFileName ).absolutePath() );
else
{
QMessageBox::information( this, tr( "Saved Style" ), message );
}

settings.setValue( "style/lastStyleDir", QFileInfo( outputFileName ).absolutePath() );
}

void QgsRasterLayerProperties::toggleBuildPyramidsButton()

0 comments on commit d8b54c4

Please sign in to comment.
You can’t perform that action at this time.