Skip to content

Commit

Permalink
Fix #14979 - Restore default style correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 6, 2016
1 parent fdf16e3 commit 123607b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgsmaplayerstylemanagerwidget.cpp
Expand Up @@ -94,6 +94,9 @@ void QgsMapLayerStyleManagerWidget::styleClicked( QModelIndex index )
return;

QString name = index.data().toString();
if ( name == "(default)" )
name = "";

mLayer->styleManager()->setCurrentStyle( name );
}

Expand Down

0 comments on commit 123607b

Please sign in to comment.