Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix cannot load style when layer has no style in DB (#8113)
  • Loading branch information
3nids committed Oct 4, 2018
1 parent bfe2413 commit 226fb47
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -1165,12 +1165,6 @@ void QgsVectorLayerProperties::loadStyle()

//get the list of styles in the db
int sectionLimit = mLayer->listStylesInDatabase( ids, names, descriptions, errorMsg );
if ( !errorMsg.isNull() )
{
QMessageBox::warning( this, tr( "Load Styles from Database" ), errorMsg );
return;
}

QgsVectorLayerLoadStyleDialog dlg( mLayer );
dlg.initializeLists( ids, names, descriptions, sectionLimit );

Expand Down

0 comments on commit 226fb47

Please sign in to comment.