Skip to content

Commit 226fb47

Browse files
authoredOct 4, 2018
fix cannot load style when layer has no style in DB (#8113)
1 parent bfe2413 commit 226fb47

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/app/qgsvectorlayerproperties.cpp‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,12 +1165,6 @@ void QgsVectorLayerProperties::loadStyle()
11651165

11661166
//get the list of styles in the db
11671167
int sectionLimit = mLayer->listStylesInDatabase( ids, names, descriptions, errorMsg );
1168-
if ( !errorMsg.isNull() )
1169-
{
1170-
QMessageBox::warning( this, tr( "Load Styles from Database" ), errorMsg );
1171-
return;
1172-
}
1173-
11741168
QgsVectorLayerLoadStyleDialog dlg( mLayer );
11751169
dlg.initializeLists( ids, names, descriptions, sectionLimit );
11761170

0 commit comments

Comments
 (0)
Please sign in to comment.