Skip to content
Permalink
Browse files

fix for #6273

  • Loading branch information
tecoholic authored and NathanW2 committed Oct 5, 2012
1 parent efb2329 commit 41d306be1a82a841e44acb435157c0234d544613
Showing with 9 additions and 7 deletions.
  1. +9 −7 src/gui/symbology-ng/qgsstylev2managerdialog.cpp
@@ -669,12 +669,14 @@ void QgsStyleV2ManagerDialog::removeItem()

bool QgsStyleV2ManagerDialog::removeSymbol()
{
QString symbolName = currentItemName();
if ( symbolName.isEmpty() )
return false;

// delete from style and update list
mStyle->removeSymbol( symbolName );
QModelIndexList indexes = listItems->selectionModel()->selectedIndexes();
foreach( QModelIndex index, indexes )
{
QString symbolName = index.data().toString();
// delete from style and update list
if ( !symbolName.isEmpty() )
mStyle->removeSymbol( symbolName );
}
mModified = true;
return true;
}
@@ -1294,7 +1296,7 @@ void QgsStyleV2ManagerDialog::listitemsContextMenu( const QPoint& point )
{
groupId = mStyle->groupId( selectedItem->text() );
}
QModelIndexList indexes = listItems->selectionModel()->selection().indexes();
QModelIndexList indexes = listItems->selectionModel()->selectedIndexes();
foreach ( QModelIndex index, indexes )
{
mStyle->group( type, index.data().toString(), groupId );

0 comments on commit 41d306b

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