Fix #14979 - Restore default style correctly

This commit is contained in:
Nathan 2016-07-06 23:36:12 +10:00
parent fdf16e3c92
commit 123607be71

View File

@ -94,6 +94,9 @@ void QgsMapLayerStyleManagerWidget::styleClicked( QModelIndex index )
return;
QString name = index.data().toString();
if ( name == "(default)" )
name = "";
mLayer->styleManager()->setCurrentStyle( name );
}