Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/MoleculeList/QtMoleculeList.cpp

    r2050b2 r503a7fd  
    464464      +" does not have a groupitem?");
    465465  QList<QStandardItem *> mol_row = _molitem->parent()->takeRow(_molitem->index().row());
    466   // call setOccurrence on the old group later
    467   addToBeSetOccurrence(groupitem);
     466  // call setOccurrence on the old group later, if it's not a removal candidate
     467  if (groupitem->rowCount() != 0)
     468    addToBeSetOccurrence(groupitem);
    468469  // ..  and re-add where new formula fits
    469470  const std::string molecule_formula = _molitem->getMolecule()->getFormula().toString();
Note: See TracChangeset for help on using the changeset viewer.