If the user creates a surface from 2 edges, a warning dialog appears. Some refactoring in Command.cpp to make it simpler.