Ignore:
Timestamp:
08/23/16 12:10:01 (6 years ago)
Author:
Thomas Fuhrmann
Message:

Save config on target and save all locally are now working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mavlink/lib/FlairCore/src/ListWidget.cpp

    r59 r63  
    5959void ListWidget::RemoveItem(void) {
    6060  if (selectedItemChanged) {
     61    // Delete the the last item, the xml file will automatically be updated by the GUI
     62    // TODO diff when the apply all xml file is received to avoid clear here
     63    std::ostringstream item_prop;
     64    item_prop << "item" << (items.size() - 1);
     65    UnsetPersistentXmlProp(item_prop.str());
     66    // Delete the item from the internal list and ask the GUI to delete it
    6167    selectedItemChanged = false;
    6268    items.erase(items.cbegin() + selectedItemRow);
Note: See TracChangeset for help on using the changeset viewer.