Edit dialog.cpp on mac