don't reset file if it wasn't changed in dialog