Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionQueue.cpp

    r06b5df rcfb9c5  
    9898void ActionQueue::queueAction(const Action * const _action, enum Action::QueryOptions state)
    9999{
    100   OBSERVE;
    101   NOTIFY(ActionQueued);
    102100  Action *newaction = _action->clone(state);
    103101  newaction->prepare(state);
     
    123121    std::cerr << "ActionQueue cleared." << std::endl;
    124122  }
     123  if (lastActionOk) {
     124    OBSERVE;
     125    NOTIFY(ActionQueued);
     126    _lastchangedaction = newaction;
     127  }
    125128#else
    126129  {
     
    130133  mtx_queue.unlock();
    131134#endif
    132   _lastchangedaction = newaction;
    133135}
    134136
     
    193195        CurrentAction = (size_t)-1;
    194196      }
     197      if (lastActionOk) {
     198        OBSERVE;
     199        NOTIFY(ActionQueued);
     200        _lastchangedaction = actionqueue[CurrentAction];
     201      }
    195202      // access actionqueue, hence using mutex
    196203      mtx_queue.lock();
Note: See TracChangeset for help on using the changeset viewer.