Skip to content
Permalink
Browse files

fix cannot load style when layer has no style in DB (#8113)

  • Loading branch information
3nids committed Oct 4, 2018
1 parent bfe2413 commit 226fb47eef49cdab28381b3bc4a587715789ad4b
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/app/qgsvectorlayerproperties.cpp
@@ -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 );

0 comments on commit 226fb47

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