Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix cannot load style when layer has no style in DB (#8113)
- Loading branch information
Showing
with
0 additions
and
6 deletions.
-
+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 ); |
|
|
|
|
|