mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix #14979 - Restore default style correctly
This commit is contained in:
parent
fdf16e3c92
commit
123607be71
@ -94,6 +94,9 @@ void QgsMapLayerStyleManagerWidget::styleClicked( QModelIndex index )
|
||||
return;
|
||||
|
||||
QString name = index.data().toString();
|
||||
if ( name == "(default)" )
|
||||
name = "";
|
||||
|
||||
mLayer->styleManager()->setCurrentStyle( name );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user