subsurface/core/applicationstate.cpp