We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ae067b7 commit 6829b5fCopy full SHA for 6829b5f
src/gui/symbology-ng/qgssymbolv2propertiesdialog.cpp
@@ -169,9 +169,10 @@ void QgsSymbolV2PropertiesDialog::populateLayerTypes()
169
void QgsSymbolV2PropertiesDialog::updateUi()
170
{
171
int row = currentRowIndex();
172
+ int count = listLayers->model()->rowCount();
173
btnUp->setEnabled( row > 0 );
- btnDown->setEnabled( row < listLayers->model()->rowCount() - 1 && row != -1 );
174
- btnRemoveLayer->setEnabled( row != -1 );
+ btnDown->setEnabled( row < count - 1 && row != -1 );
175
+ btnRemoveLayer->setEnabled( count > 1 && row != -1 );
176
}
177
178
void QgsSymbolV2PropertiesDialog::updatePreview()
0 commit comments