Changeset View
Changeset View
Standalone View
Standalone View
b/src/editinteractor.cpp
Context not available. | |||||
{ | { | ||||
EditInteractor::Private *ei = (EditInteractor::Private *)opaque; | EditInteractor::Private *ei = (EditInteractor::Private *)opaque; | ||||
Error err = status_to_error(status); | Error err; | ||||
const unsigned int oldState = ei->state; | |||||
if (oldState != EditInteractor::StartState) { | |||||
err = status_to_error(status); | |||||
} | |||||
if (!err) { | if (!err) { | ||||
// advance to next state based on input: | // advance to next state based on input: | ||||
const unsigned int oldState = ei->state; | |||||
ei->state = ei->q->nextState(status, args, err); | ei->state = ei->q->nextState(status, args, err); | ||||
if (ei->debug) { | if (ei->debug) { | ||||
std::fprintf(ei->debug, "EditInteractor: %u -> nextState( %s, %s ) -> %u\n", | std::fprintf(ei->debug, "EditInteractor: %u -> nextState( %s, %s ) -> %u\n", | ||||
Context not available. |