Skip to content
Permalink
Browse files

fixed the layer +/- button enabling

  • Loading branch information
tecoholic committed Jul 9, 2012
1 parent 80ecdeb commit 345d096e788f58fd10461970c965c9f13a5f85c6
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/symbology-ng/qgssymbolv2selectordialog.cpp
@@ -253,7 +253,8 @@ void QgsSymbolV2SelectorDialog::updateUi()
btnDown->setEnabled( false );
btnRemoveLayer->setEnabled( false );
btnLock->setEnabled( false );
return;
btnAddLayer->setEnabled( true );
return;
}

int rowCount = item->parent()->rowCount();
@@ -263,6 +264,7 @@ void QgsSymbolV2SelectorDialog::updateUi()
btnDown->setEnabled( currentRow < rowCount - 1 );
btnRemoveLayer->setEnabled( rowCount > 1 );
btnLock->setEnabled( true );
btnAddLayer->setEnabled( false );
}

void QgsSymbolV2SelectorDialog::updatePreview()

0 comments on commit 345d096

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