Skip to content

Commit

Permalink
fixed the layer +/- button enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunmozhi committed Jul 9, 2012
1 parent 80ecdeb commit 345d096
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/symbology-ng/qgssymbolv2selectordialog.cpp
Expand Up @@ -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();
Expand All @@ -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()
Expand Down

0 comments on commit 345d096

Please sign in to comment.